fun(int x)
{int j,sum=0;
for(j=1;j<=x;j++)
sum+=j;
returm sum;
}
main()
{int s,n;
scanf("%d",&n);
s=fun(n);
printf("%d",s);