#include <stdio.h>
#include <stdlib.h>
#define NBR_DEE 5
 
int main(void) {
  	int score[NBR_DEE];
	int dee1,dee2=0,occurence,valeur_occurance=7;
	for (dee1=0;dee1<NBR_DEE;dee1++){
		printf("Jet n°%d :",dee1);
		scanf("%d",&score[dee1]);
	}
	for (dee1=0;dee1<NBR_DEE;dee1++){
		for (dee2;dee2<NBR_DEE;dee2++){
			if (score[dee1]==score[dee2] && score[dee1]!=valeur_occurance){
				occurence++;
			}
		}
		if (occurence>0){
			valeur_occurance=score[dee1];
		}
		dee2++;
	}
	printf("Occurrences maximum : %d\n",occurence);
  	return EXIT_SUCCESS;
}