S = int(input()) print(S ^ 1)