func main1() {
    let x = Int(readLine()!)!
    switch x {
    case 0:
        print(1)
        break
    case 1:
        print(0)
        break
    default:
        //do nothing
        break
    }
}

main1()