# coding=utf-8: n = int(input()) if n == 0: print(1) elif n == 1: print(0)