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