#include using namespace std; int main() { bool N; cin >> N; cout << !N << endl; return 0; }