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