for i in range(1000): if input(str(i).zfill(3) + '\n') == "unlocked": break