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