import java.util.*; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int num = 0; while (true) { String s = ""; if (num <= 9) { s += "00"; s += num; } if (10<=num && num<=99) { s += "0"; s += num; } else { s += num; } System.out.println(s); String result = sc.next(); if (result.equals("unlocked")) {break;} num++; } } }