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