#include using namespace std; int main(){ int n; cin >> n; int a[n]; for(int types_i = 0; types_i < n; types_i++){ cin >> a[types_i]; } // your code goes here int max = 0, i; for( i = 0; i < n; i++) { if(a[i] > max) max = a[i]; } int x[max]; for(i = 0; i < n; i++) { x[a[i]]++; } int min = 0 , j; for(i = 0;i < max ; i++ ) { if(x[i] > min) { min = x[i]; j = i; } } cout << j; return 0; }