#include using namespace std; int main(){ int n; cin >> n; vector types(n); for(int types_i = 0; types_i < n; types_i++){ cin >> types[types_i]; } // your code goes here int array_1[6]; memset(array_1,0,6 * sizeof(int)); for(int i = 0; i < types.size(); i++){ array_1[types[i]] += 1; } int max = 0; int maximum_type = 0; for(int i = 0; i < 6; i++){ if(max < array_1[i]){ max = array_1[i]; maximum_type = i; } } cout << maximum_type; return 0; }