"use strict"
 
const main = arg => {
  const input = arg.trim().split("\n");
  var N = parseInt(input[0].split(" ")[0]);
  if (N=0){
    console.log("1");
  }else{
    console.log("0");
  }
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));  