import sys for x in xrange(1000): print '{0:03}'.format(x) sys.stdout.flush() res = raw_input() if res == 'unlocked': break