#include using namespace std; int main(void) { int n, v[6] = { 0 }; cin >> n; for (int i = 0; i < n; i++){ int t; cin >> t; v[t - 1]++; } n = 6; for (int i = 5; i > 0; i--){ if (v[n - 1] < v[i - 1]){ n = i; } } cout << n << endl; return 0; }