#include #include #include #include #include using namespace std; int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ int n; cin >> n; int birdType; int type[5] = {0}; for(int i = 0; i < n; i++) { cin >> birdType; type[birdType - 1]++; } int max = -1; for(int i = 0; i < 5; i++) { if(type[i] > max) max = type[i]; } for(int i = 0; i < 5; i++) { if(type[i] == max) { cout << i + 1 << endl; break; } } return 0; }