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