"use strict";

const main = arg => {
  const input = arg.trim().split("\n");
  const num = parseInt(input[0]);
  const resFunc = x => (x === 0) ? console.log(1) : console.log(0);
  resFunc(num);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));  