import java.util.*
import kotlin.math.acos
import kotlin.math.cos
import kotlin.math.round
import kotlin.math.sin

fun main(args: Array<String>) {
    val x = readInt()
    
    if (x == 0) println(1)
    else println(0)
}

// read
fun readString() = readLine()!!
fun readInt() = readLine()!!.toInt()