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