#include #include #include using namespace std; #define RREP(i,s,e) for (i = e-1; i >= s; i--) #define rrep(i,n) RREP(i,0,n) #define REP(i,s,e) for (i = s; i < e; i++) #define rep(i,n) REP(i,0,n) #define INF 1e8 typedef long long ll; int main() { int i, j, x; string res, s = "0000000000"; rep (i,10) { int y; string t = s; cout << t << endl; cin >> x >> res; if (x == 10) return 0; rep (j,9) { t[i]++; cout << t << endl; cin >> y >> res; if (y == 10) return 0; if (x < y) s = t; } } return 0; }