import java.util.*; import java.util.Map.Entry; import java.math.*; import java.awt.geom.*; import java.io.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); for(int i = 0; i < 1000; i++) { String say = String.valueOf(i); String aa = ""; for(int j = say.length(); j < 3; j++) { aa += "0"; } aa += say; System.out.println(aa); String ans = sc.next(); if(ans.equals("unlocked")) break; } } }