#include using namespace std; int main(void){ string ans = "??????????"; int prev_mached = 0; for(int i = 0; i < 10; i++){ int now_mached; string status; for(int j = 0; j <= 9; j++){ ans[i] = '0' + j; cout << ans << endl; cin >> now_mached >> status; if(now_mached > prev_mached){ prev_mached = now_mached; break; } } } cout << ans << endl; return 0; }