#include<iostream>
using namespace std;
int function(int n);
int main()
{
int n;
cin >> n;
int a = function(n);
cout << a << endl;
}
int function(int n)
{
int sum=0;
for (int i = 1; i <= n; i++)
{
sum += i;
}
return sum;
}
using namespace std;
int function(int n);
int main()
{
int n;
cin >> n;
int a = function(n);
cout << a << endl;
}
int function(int n)
{
int sum=0;
for (int i = 1; i <= n; i++)
{
sum += i;
}
return sum;
}