"use strict"

function Main(input) {
  let lines = input.split('\n');
  let x = parseInt(lines[0], 10);

  if ( x === 1 ) {
    console.log('0');
  } else {
    console.log('1');
  }

  return;
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));
