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

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

func mainA() {
    let x = readInt()
    print(x == 0 ? 1 : 0)
}
mainA()