"use strict";

function main(input) {
  input = input.trim();
  if (input == 0) {
    console.log(1);
  } else {
    console.log(0);
  }
}

function numberSort(array) {
  array.sort(f);
  return array;
}

var f = function (a, b) {
  return a - b;
};

main(require("fs").readFileSync("/dev/stdin", "utf-8"));
