#include <iostream>
using namespace std;

int main() {
	
	
	int number;
	int total;
	
	cout << "Enter a number\n";
	cin >> number;
	
	total = 0;
	
	for (int i =0; i <= number ; i++)
	{
		total += i;
	}
	
	cout << "Sum of numbers from 1 to " << number << " is " << total << endl;
	return 0;
}