import java.util.Scanner; class Main{ static Scanner s=new Scanner(System.in); static int gInt(){return Integer.parseInt(s.next());} public static void main(String[]$){ for(int i=0;i<1000;++i) { System.out.printf("%03d",i); System.out.println(); if(!s.next().equals("locked")) return; } } }