S = input() print(S[:-1], int(S[-1])^1, sep="")