# -*- coding: utf-8 -*- import sys,copy,math,heapq,itertools as it,fractions,re,bisect,collections as coll num = 0 while 1: print "%03d" % num sys.stdin.flush() res = raw_input() if res == "unlocked": break num += 1