#pragma GCC optimize("Ofast") #pragma GCC target("avx2") char*mmap(); #define RD(v) int v=0;while(c=*r++-48,c>=0)v=v*10+c; #define RDL(v) long v=0;while(c=*r++-48,c>=0)v=v*10+c; int h[7]; main(){ char*r=mmap(0,256*1024,1,2,0,0l); int c; RD(n); while(n--){ RD(l); ++h[l]; } int k=1; if(h[k]<=h[2]) k=2; if(h[k]<=h[3]) k=3; if(h[k]<=h[4]) k=4; if(h[k]<=h[5]) k=5; if(h[k]<=h[6]) k=6; printf("%d",k); }