#include using namespace std; using lint = long long; using P = pair; const int inf = 1073741824; const long long linf = 1152921504606846976; const int mod = 998244353; // const int mod = 1000000007; const vector dx = {1, 0, -1, 0}, dy = {0, 1, 0, -1}; const char L = '\n'; const char C = ' '; #define For(i, a, b) for (int i = a; i < b; i++) #define rFor(i, a, b) for (int i = a; i >= b; i--) #define all(v) v.begin(), v.end() #define rall(v) v.rbegin(), v.rend() #define pb push_back #define test cout << "test:" #define Yes cout << "Yes\n" #define No cout << "No\n" int main() { ios::sync_with_stdio(false); cin.tie(0); int n; cin >> n; cout << (n - 1) * (n - 1) << L; return 0; }