#include<stdio.h> int main() { long long n,i,count[5];count[0]=0;count[1]=0;count[2]=0;count[3]=0;count[4]=0; scanf("%lld",&n); int arr[n],type; for(i=0;i<n;i++) { scanf("%d",&type); if(type==1) count[0]++; if(type==2) count[1]++; if(type==3) count[2]++; if(type==4) count[3]++; if(type==5) count[4]++; } long long max=count[0]; int flag=1; for(i=1;i<5;i++) { if(count[i] > max) { max=count[i]; flag=i+1; } } printf("%d\n",flag); return 0; }