S = int(input()) if S[-1] == 0: S[-1] = 1 if S[-1] == 1: S[-1] = 0 print(S)