"use strict"
function main(arg) {
    let data = arg.trim().split("\n").map(Number)[0]
    if (data === 0) {
        console.log(1)
    } else {
        console.log(0)
    }
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));