import java.util.Scanner; public class No_304 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); for (int i = 0; i <= 999; i++) { System.out.printf("%03d\n", i); if (sc.next().equals("unlocked")) { break; } } sc.close(); } }