for i in range(1000): print(str(i).zfill(3), flush=True) res = input() if res == 'unlocked': exit()