#include #include using namespace std; int main(){ int N; cin >> N; int tree = (N-1); int ans = tree * (N-1); cout << ans << endl; // output }