#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]; } int t[6]={0}; for(int i=0;imax) { k=i; max=t[i]; } for(int j=0;j<=k;j++) { if(t[j]==max) { l=j; break; } } } cout<