def NOR(a, b): if a == 0 and b == 0: return 1 else: return 0 X = int(input()) print(NOR(X, X))