c = input() a = 0 for i in range(c): a = (a + i) print(a)