#include #include #include #include #include using namespace std; int main() { int count[6], arr[200001], t, num, max; cin >> t; for(int i = 0; i < t; i++){ cin >> arr[i]; for(int j = 1; j <= 5 ; j++ ) if( arr[i] == j) count[j]++; } max = 0; for(int i = 1; i <= 5; i++ ) if(count[i] > count[max] ) max = i; cout << max; return 0; }