#include "bits/stdc++.h" using namespace std; int main(){ int n, x; int tipe[6] = {0, 0, 0, 0, 0, 0}; scanf("%d", &n); for(int i=0; i<n; i++){ scanf("%d", &x); tipe[x]++; } int common = 1; for(int i=1; i<=5; i++) if (tipe[i] > tipe[common]) common = i; printf("%d\n", common); return 0; }