class Problem0272: def solve(this): x = int(input()) if x == 0: print(1) else: print(0) if __name__ == "__main__": problem = Problem0272() problem.solve()