from functools import partial sqr = partial(pow, exp=2) n = int(input()) result = sum(map(sqr, range(1, n + 1))) print(result)