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