#include <bits/stdc++.h>
using namespace std;
long long s,i,n;
int main()
{
cin>>n;
s=0;
for (i=1; i<=n; i++)
s=s+i;
cout<<s;
return 0;
}
program Tingtongs;
uses crt;
var n,i:integer; s:longint;
begin
clrscr;
write('nhap n:'); readln(n);
for i:=1 to n do s:=s+i;
write('Tong la: ',s);
readln;
end.