#include using namespace std; int main(){ int n; cin >> n; vector types(n); for(int types_i = 0; types_i < n; types_i++){ cin >> types[types_i]; } // your code goes here int t1 = 0; int t2 = 0; int t3 = 0; int t4 = 0; int t5 = 0; int max = 0; int f_type = 0; for(int i = 0; i < n; i++){ if(types[i] == 1) t1++; else if(types[i] == 2) t2++; else if(types[i] == 3) t3++; else if(types[i] == 4) t4++; else if(types[i] == 5) t5++; } if(t1 > max){ max = t1; f_type = 1; } if(t2 > max){ max = t2; f_type = 2; } if(t3 > max){ max = t3; f_type = 3; } if(t4 > max){ max = t4; f_type = 4; } if(t5 > max){ max = t5; f_type = 5; } cout << f_type; return 0; }