while 1:print sum([a**2 for a in range(input()+1)])