X = input().strip()
print(1 if X == '0' else 0)