n = int(input()) res = 0 if n == 1: res = 0 elif n == 0: res = 1 print(res)