using System; public class Hello { public static void Main() { var n = int.Parse(Console.ReadLine().Trim()); var a = 0; for (int i = 1; i <= n; i++) a += i; Console.WriteLine(a); } }