#include<bits/stdc++.h>
using namespace std;
#define el "\n"
#define ll long long
#define ull unsigned long long
#define se second
#define fi first
#define be begin()
#define en end()
#define Faster cin.tie(0); cout.tie(0); ios_base::sync_with_stdio(0);
int main()
{
Faster;
int n; cin >> n;
int a[n][n];
int dem = 1;
ll ans = 0;
for(int i = 0; i < n; i++)
{
for(int j = 0; j < n; j++)
{
a[i][j] = dem ++;
//cout << a[i][j] << " ";
if(i == j) ans += a[i][j];
}
//cout << el;
}
cout << ans;
return 0;
}
I2luY2x1ZGU8Yml0cy9zdGRjKysuaD4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKI2RlZmluZSBlbCAiXG4iCiNkZWZpbmUgbGwgbG9uZyBsb25nCiNkZWZpbmUgdWxsIHVuc2lnbmVkIGxvbmcgbG9uZwojZGVmaW5lIHNlIHNlY29uZAojZGVmaW5lIGZpIGZpcnN0CiNkZWZpbmUgYmUgYmVnaW4oKQojZGVmaW5lIGVuIGVuZCgpCiNkZWZpbmUgRmFzdGVyIGNpbi50aWUoMCk7IGNvdXQudGllKDApOyBpb3NfYmFzZTo6c3luY193aXRoX3N0ZGlvKDApOwoKaW50IG1haW4oKQp7CiAgICBGYXN0ZXI7CiAgICBpbnQgbjsgY2luID4+IG47CiAgICBpbnQgYVtuXVtuXTsKICAgIGludCBkZW0gID0gMTsKICAgIGxsIGFucyA9IDA7CiAgICBmb3IoaW50IGkgPSAwOyBpIDwgbjsgaSsrKQogICAgewogICAgICAgIGZvcihpbnQgaiA9IDA7IGogPCBuOyBqKyspCiAgICAgICAgewogICAgICAgICAgICBhW2ldW2pdID0gZGVtICsrOwogICAgICAgICAgICAvL2NvdXQgPDwgYVtpXVtqXSA8PCAiICI7CiAgICAgICAgICAgIGlmKGkgPT0gaikgYW5zICs9IGFbaV1bal07CiAgICAgICAgfQogICAgICAgIC8vY291dCA8PCBlbDsKICAgIH0KICAgIGNvdXQgPDwgYW5zOwogICAgcmV0dXJuIDA7Cn0K