#include using namespace std; int main(){ int n; cin >> n; vector a(n); map mp; int max=-1,maxi=-1; int i; for( i = 0; i < n; i++){ cin >> a[i]; } sort(a.begin(), a.end()); for( i = 0; i < n; i++){ mp[a[i]]++; if(mp[a[i]]>max) { max=mp[a[i]]; maxi=i; } } cout<