#6188: 一直RE


phes10224 (冰神)


#include <iostream>
using namespace std;

int main()
{
   int N;
   while(cin>>N)
   if (N>0||N==0)
   cout<<(N*(1+N)/2)+1<<endl;
   else
   break;
   //system ("pause");
   return 7697;
}