#include using namespace std; int main() { int a; cin >> a; cout << (a + 1) % 2 << '\n'; return 0; }