#include using namespace std; int main(){ int n, x, max_index = 0; cin >> n; int types[n] = {0}; for(int i = 0; i < n; i++){ cin >> x; ++types[x]; } for(int j =1; j<6; ++j){ if(types[max_index] < types[j]) max_index = j; } cout<