//#include "stdafx.h"//
//#include <fstream>//
#include <iostream>
using namespace std;
int main(int argc, char* argv[])
{
//fstream cin("1001.txt");//
int a;
while(cin>>a)
{
int sum=0;
for(int i=1;i<=a;sum+=i++);
cout<<sum<<endl<<endl;
}
return 0;
}
1001.txt
3
100