import java.io.PrintStream
import java.util.*

fun main(args: Array<String>) {
    val scanner = Scanner(System.`in`);
    try {
        solve(scanner, System.out);
    } finally {
        scanner.close();
    }
}

fun solve(scanner: Scanner, print: PrintStream) {
    print.println(if(scanner.nextInt() == 0) 1 else 0)
}
