#include main(){ int N; int count[] = {0,0,0,0,0,0}; for(int i = 0;i < N;i++){ int l; scanf("%d",&l); count[l-1]++; } int max = 0; int maxindex = 0; for(int i = 0;i < N;i++){ if(count[i] >= max){ max = count[i]; maxindex = i+1; } } printf("%d",maxindex); }