#include<stdio.h>
#include<math.h>
int main()
{
int i,s,n;
s=0;
scanf("%d",&n);
do
{
s=s+i;
i++;
}
while(i<=n);
printf("%d",s);
return 0;
}
I2luY2x1ZGU8c3RkaW8uaD4KI2luY2x1ZGU8bWF0aC5oPgppbnQgbWFpbigpCnsKaW50IGkscyxuOwpzPTA7CnNjYW5mKCIlZCIsJm4pOwpkbwp7CnM9cytpOwppKys7Cn0Kd2hpbGUoaTw9bik7CnByaW50ZigiJWQiLHMpOwpyZXR1cm4gMDsKfQ==