summa += (j + 1) ** 2
summa = summa + (j + 1) ** 2
n = int(input()) summa = 0 for j in range(n): summa += (j + 1) ** 2 print(summa)