// From RelayCoding http://r...content-available-to-author-only...5.net/
/*
お題:
1~nまでの数値の合計を表示せよ
*/
#include <stdio.h>
int main();
int main() {
int n;
scanf("%d",n);
/* 無効 */ // function(x);
printf("");
int i;
for(int j=0;j<n;j++){
scanf("%d",&n); //┌(┌ ^o^)┐ホモォ…
break;
}
n=0;
scanf("%d",&n);//nが0未満だと┌(┌^o^)┐が働かないため
for(int s=0;s<n;s++){
if(s==0)i=0;
i+=s;
}
printf( "%d" , i );
putchar('\n');
}//怖い怖い怖い怖い
Ly8gRnJvbSBSZWxheUNvZGluZyAgaHR0cDovL3IuLi5jb250ZW50LWF2YWlsYWJsZS10by1hdXRob3Itb25seS4uLjUubmV0LyAKCi8qCgrjgYrpoYzvvJoKMe+9nm7jgb7jgafjga7mlbDlgKTjga7lkIjoqIjjgpLooajnpLrjgZvjgogKCiovCgoKI2luY2x1ZGUgPHN0ZGlvLmg+CmludCBtYWluKCk7CmludCBtYWluKCkgewogICAgaW50IG47CiAgICBzY2FuZigiJWQiLG4pOwogICAgLyog54Sh5Yq5ICovIC8vIGZ1bmN0aW9uKHgpOwogICAgcHJpbnRmKCIiKTsKICAgIGludCBpOwogICAgZm9yKGludCBqPTA7ajxuO2orKyl7CiAgICAgICBzY2FuZigiJWQiLCZuKTsgLy/ilIzvvIjilIwg77y+b++8vu+8ieKUkOODm+ODouOCqeKApgogICAgICAgIGJyZWFrOwogICAgfQogICAgbj0wOwogICAgc2NhbmYoIiVkIiwmbik7Ly9u44GMMOacqua6gOOBoOOBqOKUjCjilIzvvL5v77y+KeKUkOOBjOWDjeOBi+OBquOBhOOBn+OCgQogICAgZm9yKGludCBzPTA7czxuO3MrKyl7CiAgICAgICAgaWYocz09MClpPTA7CiAgICAgICAgaSs9czsKICAgIH0KICAgIHByaW50ZiggIiVkIiAsIGkgKTsKICAgIHB1dGNoYXIoJ1xuJyk7Cn0vL+aAluOBhOaAluOBhOaAluOBhOaAluOBhAo=