import java.util.*; import java.io.*; public class Exercise46{ public static void main (String[] args) throws IOException{ BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String str = new String(in.readLine()); String[] num = new String[1000]; for (int i = 0; i < 1000; i++){ if(i < 10){ num[i] = "00" + i; }else if(i > 9 && i < 100){ num[i] = "0" + i; }else{ num[i] = String.valueOf(i); } } int a = 0; while (true){ System.out.println(num[a]); System.out.flush(); String result = new String(in.readLine()); if (result == "unlocked"){ break; }else{ a++; } } } }