#10591: __ce


yyjzy (愚一金之尧)


var a:int64;
begin
while not eof do begin
readln(a);
writeln((a*a*a+5*a+6)div 6)
end;
end.