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