import sys readline=sys.stdin.readline X=int(readline()) ans=1-X print(ans)