import scala.math._ object Main { def main(args: Array[String]) { val sc = new java.util.Scanner(System.in) val n = sc.nextInt println(if (n == 0) 1 else 0) } }