#include using namespace std; int main() { int N; cin >> N; int num = 0; for (int i = 1; i < N; i++) { num += N; } cout << num << endl; }