public fun readln() = readLine()!!
public fun readlnByte() = readln().toByte()
public fun readlnShort() = readln().toShort()
public fun readlnInt() = readln().toInt()

fun main() {
    val input = readlnInt()
    if (input == 1) println(0)
    else if (input == 0) println(1)
}