import java.util.*; public class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); for (int i = 0; i < 1000; i++) { System.out.println("" + i / 100 + i / 10 % 10 + i % 100); System.out.flush(); String ans = sc.nextLine(); if (ans.equals("unlocked")) { break; } } } }