object testing1 {
  def main(args: Array[String]): Unit = {
    val x =scala.io.StdIn.readInt()
    if (0<=x || x<=1){
      if (x==0){
        println(1)
      }
      else {
        println(0)
      }
    }
  }
}
