s = input() s = s[:-1] + str(int(s[-1])^1) print(s)