x = int(input()) print(abs(x - 1))