for i in range(0,1000): print(f"{i:03}",flush=True) t=input() if t == 'unlocked': break