#include using namespace std; int main() { int n,x; cin >> n; x = (n - 1) * (n - 1); cout << x << endl; return 0; }