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