#include int main() { int n; scanf("%d", &n); int answer = 0; for (int i = 1; i <= n; i++ ) { answer += i; } printf("%d", answer); }