n = input() for i in range(1000): print(f'{i:03}') if input() =="unlocked": break