#include <iostream>
using namespace std;
long long int function(long long int); //宣告 function 函式
int main()
{
long long int n,ans;
while(cin >> n)
{
ans = function(n); //呼叫 function 函式
cout << ans << endl;
}
}
long long int function(long long int n) //遞迴函式
{
long long int re;
if(n == 1)
{
re = 1;
}else
{
re = function(n-1);
re = re + n - 1;
}
return re;
}