using System; using System.IO; class Start { static void Main() { First(1); long n;In(out n); Out((n + 1) * n / 2 + "\n"); Last(); } static void First(long n) { string s=""; for(int i = 0; i < n; i++){ s += Console.ReadLine() + " "; } STR = s.Split(' '); var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); } static void Last() { Console.Out.Flush(); } static void In(out T t) { Type type = typeof(T); if (type == LONG) t = (T)(object)long.Parse(STR[INT]); else if (type == STRING) t = (T)(object)STR[INT]; else if (type == CHAR) t = (T)(object)STR[INT][0]; else t = (T)(object)double.Parse(STR[INT]); INT++; } static void In(out T t, out U u) { In(out t); In(out u); } static void In(out T t, out U u, out V v) { In(out t); In(out u); In(out v); } static void In(out T t, out U u, out V v, out W w) { In(out t); In(out u); In(out v); In(out w); } static void In(out T t, out U u, out V v, out W w, out X x) { In(out t); In(out u); In(out v); In(out w); In(out x); } static void In(out T t, out U u, out V v, out W w, out X x, out Y y) { In(out t); In(out u); In(out v); In(out w); In(out x); In(out y); } static void In(out T t, out U u, out V v, out W w, out X x, out Y y, out Z z) { In(out t); In(out u); In(out v); In(out w); In(out x); In(out y); In(out z); } static string[] STR; static int INT; static Type LONG = typeof(long); static Type STRING = typeof(string); static Type CHAR = typeof(char); static void Out(T t) { Console.Write(t); } static void Swap(ref T a, ref T b) { T c = a; a = b; b = c; } }