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)); for (int a = 0; a < 1000; a++){ System.out.printf("%03d\n", a); System.out.flush(); String result = new String(in.readLine()); if (result.equals("unlocked")){ break; } } } }