using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication2 { class Program { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var sum = 0; for(int i = 1; i <= n; i++) { sum += i; } Console.WriteLine(sum); } } }