import sys for X in range(0, 1000): print(str(X).zfill(3)) sys.stdout.flush() INPUT = input() if INPUT == 'unlocked': exit(0)