import java.util.*; public class Exercise46{ public static void main (String[] args){ Scanner sc = new Scanner(System.in); 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 = sc.next(); if (result == "unlocked"){ break; }else{ a++; } } } }