n = int(input()) if n == 0: n = 1 else: n = 0 print(n)