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