import sys input = sys.stdin.readline s=input().rstrip() s=s[:-1]+str(1-int(s[-1])) print(s)