N=int(input()) S=0 for i in range(0,N): S=S+i print(S)