#include using namespace std; int main(){ int cnt[10]={0},N; scanf("%d",&N); for(int i=0;ima){ ma=cnt[i]; val=i; } } printf("%d\n",val); }