X = input() if X != 0: print(0) else: print(1)