#include #include #include #include #include #include #include #include #include #define rep(i, a) FOR(i, 0, a) #define FOR(i, a, b) for(int i = a; i < b; ++i) typedef long long ll; typedef unsigned long long ull; typedef std::pair P; struct edge{ int to, time, cost; }; int main(){ int n; std::cin >> n; std::cout << (n == 0 ? 1 : 0) << std::endl; return 0; }