#include #include #include #include #include #include #include int main(){ int n; scanf("%d",&n); int count[5]; for(int a_i=0;a_i<5;a_i++){ count[a_i]=0; } int *types = malloc(sizeof(int) * n); for(int types_i = 0; types_i < n; types_i++){ scanf("%d",&types[types_i]); if(types[types_i]==1){ count[0]++; }else if(types[types_i]==2){ count[1]++; }else if(types[types_i]==3){ count[2]++; }else if(types[types_i]==4){ count[3]++; }else{ count[4]++; } } int max=0,ans; for(int i=0;i<5;i++){ if(count[i]>max){ max=count[i]; ans=i+1; } } printf("%d",ans); return 0; }