X = int(input()) ans = X ^ 1 print(ans)