#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]; } int birdsTypes[] = {0,0,0,0,0}; for(int types_i = 0; types_i < n; types_i++){ birdsTypes[types[types_i] - 1]++; } int max = 0; int maxtype = 0; for(int i = 0; i < 5; i++){ if (max < birdsTypes[i]){ max = birdsTypes[i]; maxtype = i; } } cout << maxtype +1; return 0; }