#include <bits/stdc++.h>
using namespace std;
int main() {
    int a;
    cin >> a;
    if(a == 1) {
        cout << "1\n";
        return 0;
    }
    if(a == 0) {
        cout << "2\n";
        return 0;
    }
    cout << 2 - a * a;
    return 0;
}
