N=input() for i in range(N): city[i]=input() for m in range(N): answer+=(m+1)*(m+2) print(answer)