#include <iostream> using namespace std; int main() { int r; int f=0; cin >> r; for (int i = 0; i <= r; i++) { f += i; cout << f << " "; } }