object Main {
  def main(args: Array[String]): Unit = {
    import scala.io.StdIn.readLine
    val Array(datX) = readLine.split(" ").map(_.toInt)

    val ans = if (datX == 0) 1 else 0
    println(ans)
  }
}
