#include typedef long long ll; using namespace std; int INF = 1e9; int MOD = 1e9+7; main(){ string key = "0000000000",ans; int max,n; cout << key << endl; fflush(0); cin >> max >> ans; if(ans == "unlocked")return 0; for(int i = 0;i < 10;i++){ for(int j = 1;j < 10;j++){ key[i] = j + '0'; cout << key << endl; fflush(0); cin >> n >> ans; if(ans == "unlocked")return 0; if(n > max){ max = n; break; } if(n < max){ key[i] = '0'; break; } } } }