S = "locked" i = 0 while not S.startswith("unlocked"): if i < 10: print("00" + str(i), flush = True) elif i < 100: print("0" + str(i), flush = True) else: print(i, flush = True) S = input()