a,b,c = 0,0,0 for i in range(1000000): print(str(a)+str(b)+str(c)) if input() == "unlocked": exit(0) else: c += 1 b += c // 10 c %= 10 a += b // 10 b %= 10