#include int main(){ int X; std::cin >> X; if(X == 1){ X = 0; } else{ X = 1; } std::cout << X << "\n"; return 0; }