#include int main(void) { int scan;//scanf警告用 unsigned long long n; scan=scanf("%llu",&n); if(n%2)n=(n+1)/2*n; else n=n/2*(n+1); printf("%llu",n); return 0; }