import sys for i in range(1000): print('%03d'%i) sys.stdin.flush() if input()=="unlocked": break