#include int main() { short x; std::cin >> x; std::cout << (x ^ 1) << std::endl; return 0; }