func readInt() -> Int {
    return Int(readLine()!)!
}

func readInts() -> [Int] {
    return readLine()!.split(separator: " ").map { Int($0)! }
}

// ABC178A
let i = readInt()
if i == 0 {
    print(1)
} else {
    print(0)
}
