import sys for i in xrange(1000): print "{0:0>3}".format(i) sys.stdout.flush() if raw_input()=="unlocked":break