s = int(input()) if s == 0: print(1) elif s == 1: print(0) else: print("")