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