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