# -*- 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 "unlocked" in res: break num += 1