#include using namespace std; int main(void) { int N; cin >> N; N ^= 1; cout << N << endl; return 0; }