using System; public class Program { static void Main(string[] args) { string s = Console.ReadLine(); int max = int.Parse(s); int num = 0; for(int i = 1; i < max + 1; i++){ num = num + i; } Console.WriteLine("{0}", num); } }