#include using namespace std; int main(int argc, const char *argv[]) { int X; cin >> X; cout << ++X % 2 << endl; return 0; }