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