package m.shin; import java.util.Scanner; public class Con304 { public static void main(String[] args) { Scanner s = new Scanner(System.in); for(int i = 0;i < 1000;i++){ String ans = "000"; int l = Integer.toString(i).length(); ans = ans.substring(0, 3-l) + Integer.toString(i); System.out.println(ans); if(s.nextLine().equals("unlocked")){ break; } } s.close(); } }