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