import sys for i in range(1000): print(str(i).zfill(3)) sys.stdout.flush() s = input() if s == "unlocked": exit()