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