#include using namespace std; int main(){ string X; cin >> X; cout << ( X == "0" ? '1' : '0' ) << endl; return 0; }