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