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