#include using namespace std; int main(){ int n,type; cin >> n; vector types(n); while(n--){ cin>>type; types[type]++; } int max=types[0],index; for(int i=1;imax) { max=types[i]; index=i;} } cout<