#include <iostream>
using namespace std;
int sum(int n)
{
if (n == 1)
return 1;
else
return n + sum(n - 1);
}
int main(void)
{
int N;
cin >> N;
cout << sum(N);
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBzdW0oaW50IG4pCnsKICAgIGlmIChuID09IDEpCiAgICAgICAgcmV0dXJuIDE7CiAgICBlbHNlCiAgICAgICAgcmV0dXJuIG4gKyBzdW0obiAtIDEpOwp9CgppbnQgbWFpbih2b2lkKQp7CiAgICBpbnQgTjsKICAgIGNpbiA+PiBOOwoKICAgIGNvdXQgPDwgc3VtKE4pOwogICAgcmV0dXJuIDA7Cn0=