#define _GLIBCXX_DEBUG #include using namespace std; int main() { int X; cin >> X; cout << (X+1)%2 << endl; }