a = gets.to_i if a == 0 print "1" else print "0" end