process.stdin.resume();
process.stdin.setEncoding('utf8');
var lines = [];
var reader = require('readline').createInterface({
  input: process.stdin,
  output: process.stdout
});
reader.on('line', (line) => {
  lines.push(line);
});
reader.on('close', () => {
  var n = parseInt(lines[0]);
  if(n == 0){
    n = 1;
  }else if(n == 1){
    n = 0;
  }
  console.log(n);
});