S = str(input()) if S[-1] == "1": print(S[:-1] + "0") else: print(S[:-1] + "1")