A = int(input())+1 B = 0 for i in range(1,A): B=B+i print(B)