s = list(input()) if s[-1] == "0": ans = s[:len(s)-1]+["1"] print("".join(ans)) else: ans = s[:len(s)-1]+["0"] print("".join(ans))