for i in range(10): for j in range(10): for k in range(10): x = str(i) + str(j) + str(k) print(x,flush=True) r = input() if r == "unlocked": exit()