#include #include #include #include #include #include #include #include #include #include #include #include #define INF 10000000 #define PI 3.14159265358979323846 using namespace std; typedef long long ll; typedef pair p; typedef queue qi; typedef queue< pair > qp; typedef vector vi; typedef vector vii; typedef vector< pair > vp; int dx[4] = { 0, 1, 0, -1 }; int dy[4] = { 1, 0, -1, 0 }; int main(){ ios::sync_with_stdio(false); int num[3]; string ret; ret = "a"; for(int i=0;i<=9;i++){ num[0] = i; for(int j=0;j<=9;j++){ num[1] = j; for(int k=0;k<=9;k++){ num[2] = k; cout << num[0] << num[1] << num[2] << endl << flush; cin >> ret; if(ret == "unlocked") return 0; } } } return 0; }