//11.数列求和
#include<stdio.h>
int main()
{
int n,a=0; scanf_s("%d", &n);
for (int i = 1; i <= n; i++)
{
a += i;
}
printf("%d", a);
return 0;
}
//11.数列求和
#include<stdio.h>
int main()
{
int n,a=0; scanf_s("%d", &n);
for (int i = 1; i <= n; i++)
{
a += i;
}
printf("%d", a);
return 0;
}