#include int main(void) { int s,a,m; scanf("%d", &a); s = 0; for (m = 1; m <= a; m++) { s = s + m; } printf("%d", s); return 0; }