#include using namespace std; int main(){ string ans(10, '0'); int last; cout << ans << endl; int x; string s; cin >> x >> s; last = x; for(int i=0; i<10 && last != 10; i++){ for(int j=1; j<10; j++){ ans[i] = '0' + j; cout << ans << endl; cin >> x >> s; if(last < x){ last = x; break; }else if(last > x){ ans[i] = '0' + j-1; break; } } } return 0; }