#define MAX 10000 #define TYPE_NUM 7 #define BEGEIN { #define END } #define FOR for ( #define IF if ( #define DO ) { #define SCAN scanf #define INT int #define GETINT "%d", #define PRINT printf #define OUTINT "%d\n", #define EXIT return 0; #include int main(int argc, char *argv[]) BEGEIN INT i, max, data_num; INT arr[MAX]; INT bin[TYPE_NUM] = {0}; SCAN(GETINT &data_num); FOR i = 0; i < data_num; i++ DO SCAN(GETINT &arr[i]); END FOR i = 0; i < data_num; i++ DO bin[arr[i]]++; END max = 0; FOR i = 1; i < TYPE_NUM; i++ DO IF bin[max] <= bin[i] DO max = i; END END PRINT(OUTINT max); EXIT END