#include using namespace std; using ll = long long; #define FOR(i,a,b) for(ll i=(a);i<(b);++i) #define ALL(v) (v).begin(), (v).end() #define p(s) cout<<(s)< A){ auto it = max_element(ALL(A)); return it - A.begin(); } int main(){ cin.tie(0); ios::sync_with_stdio(false); // input vector ans; string s = "0000000000"; FOR(i, 0, 10){ // index vector A; FOR(j, 0, 10){ // value char c = j + '0'; s[i] = c; // send p(s); ll N; string response; cin >> N >> response; if(N==10){ return 0; } A.push_back(N); } ans.push_back(max_index(A)); } return 0; }