#include using namespace std; int main(){ int n, t; cin >> n; int types[5] = {0, 0, 0, 0, 0}; for(int types_i = 0; types_i < n; types_i++){ cin >> t; types[t-1]++; } int res = 1, max = 0; for(int i = 0; i < 5; i++) { if (types[i] > max) { max = types[i]; res = i; } } cout << (res + 1); return 0; }