#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 max = 0; int type = 0; for (int types_i = 0; types_i < n; types_i++) { if (types[types_i] > max) { max = types[types_i]; type = types_i; } } cout << type << endl; return 0; }