def NOT(x): if(x == 0): return 1 return 0 X = int(input()) print(NOT(X))