#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#define MAX_SIZE 100
struct que {
int data[100];
int front;
int rear;
};
int count (struct que* q) {
return (q->rear - q->front + MAX_SIZE) % MAX_SIZE;
}
int main () {
struct que q = {{0, 2, 3}, 0, 2};
printf("%d", count(&q));
return 0;
}