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