X = int(input()) if X == 0: print(1) elif X == 1: print(0)