#include #define rep(i,n) for(int i=0; i<(n); i++) using namespace std; typedef long long ll; int main(){ int x; cin>>x; if(x==0) cout << 1 << endl; else cout << 0 << endl; }