import java.util.Scanner; public class No_304 { public static void main(String[] args) { String[] Num = {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9"}; Scanner sc = new Scanner(System.in); String s; flag: for(int i = 0; i < Num.length; i++){ for(int j = 0; j < Num.length; j++){ for(int k = 0; k < Num.length; k++){ System.out.println(Num[i] + Num[j] + Num[k]); if((s = sc.nextLine()).equals("unlocked")){ break flag; } } } } } }