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