package q7xx; import java.io.PrintWriter; import java.util.Arrays; import java.util.Scanner; public class Q765T { static Scanner in; static PrintWriter out; static String INPUT = ""; static void solve() { for(int i = 0;i < 1000;i++){ out.printf("%03d\n", i); out.flush(); String s = in.next(); if(s.trim().equals("unlocked"))return; } } public static void main(String[] args) throws Exception { in = INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(INPUT); out = new PrintWriter(System.out); solve(); out.flush(); } static int ni() { return Integer.parseInt(in.next()); } static long nl() { return Long.parseLong(in.next()); } static double nd() { return Double.parseDouble(in.next()); } static void tr(Object... o) { if(INPUT.length() != 0)System.out.println(Arrays.deepToString(o)); } }