//This program returns a summary from 1 to x(inserted number) #include int main() { int N; scanf("%d", &N); printf("%d\n",N * (N + 1) / 2); return 0; }