for i in range(0, 999+1): num = format(i, "03d") print(num) ans = input() if ans == "unlocked": break