S = list(input()) if S[-1] == "1": S.pop() S.append("0") else: S.pop() S.append("1") print("".join(S))