#include using namespace std; int main(){ int n; cin >> n; vector types(n); int number[5]; for(int i=0; i<5; i++){ number[i] = 0; } for(int types_i = 0; types_i < n; types_i++){ cin >> types[types_i]; number[types[types_i]-1]++; } int maxnum = 0; int maxid = 0; for(int i=0; i<5; i++){ if( number[i] > maxnum){ maxnum = number[i]; maxid = i; } } maxid++; cout<