using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; class TEST{ static void Main(){ Sol mySol =new Sol(); mySol.Solve(); } } class Sol{ public void Solve(){ var rnd=new Xor128(); HashSet H=new HashSet(); while(H.Count<1000){ int a=0; while(true){ a=rnd.Next(1000); if(H.Contains(a))continue; break; } Console.WriteLine("{0:D3}",a); H.Add(a); var s=rs(); if(s=="unlocked")return; } } public Sol(){ } static String rs(){return Console.ReadLine();} static int ri(){return int.Parse(Console.ReadLine());} static long rl(){return long.Parse(Console.ReadLine());} static double rd(){return double.Parse(Console.ReadLine());} static String[] rsa(){return Console.ReadLine().Split(' ');} static int[] ria(){return Array.ConvertAll(Console.ReadLine().Split(' '),e=>int.Parse(e));} static long[] rla(){return Array.ConvertAll(Console.ReadLine().Split(' '),e=>long.Parse(e));} static double[] rda(){return Array.ConvertAll(Console.ReadLine().Split(' '),e=>double.Parse(e));} } class Xor128{ static uint x = 123456789; static uint y = 362436069; static uint z = 521288629; static uint w = 88675123; uint t; public Xor128(){ } public Xor128(uint seed){ z ^= seed; z ^= z >> 21; z ^= z << 35; z ^= z >> 4; } public uint Next(){ t = x ^ (x << 11); x = y; y = z; z = w; return w = (w ^ (w >> 19)) ^ (t ^ (t >> 8)); } public int Next(int ul){ return NextI(0,ul-1); } public int NextI(int from,int to){ int mod=to-from+1; int ret=(int)(Next()%mod); return ret+from; } }