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