def main(): X = int(input()) ans = 0 if X == 1 else 1 print(ans) main()