#30970: Python 一行解 簡單明瞭


eric22221213@gmail.com (遊戲亡 gd)


print((int(input())+1)%2)