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