#include #include #include #include #include using namespace std; int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ int n ,birds[200000], bcount[5] = {0,0,0,0,0},birdtype = 0 ,maxbirdtype = 0; cin >> n ; for(int i = 0;i < n ; i++ ){ cin >> birds[i]; switch(birds[i]){ case 1: bcount[0]++; break; case 2: bcount[1]++; break; case 3: bcount[2]++; break; case 4: bcount[3]++; break; case 5: bcount[4]++; break; } } for(int i = 0 ; i < 5 ;i++ ){ if(maxbirdtype < bcount[i] ){ birdtype = i + 1; maxbirdtype = bcount[i]; } } cout << birdtype ; return 0; }