using System; public class Test{ static void Main(){ string s = Console.ReadLine(); int a = int.Parse(s); int total=0; for(int i = 1; i <= a; i++){ total = total + i; } Console.WriteLine(total); } }