import sys input=lambda: sys.stdin.readline().rstrip() x=int(input()) print(1-x)