#include using namespace std; int main(void) { int n; cin >> n; if (n == 0)cout << 1 << endl; else cout << 0 << endl; return 0; }