program Project2; {$APPTYPE CONSOLE} uses SysUtils; var n,m,rez: int64; begin { TODO -oUser -cConsole Main : Insert code here } assign(input,'problem.in'); reset(input); readln(n,m); assign(output,'problem.out'); rewrite(output); rez:=0; for i:=1 to n do rez:=rez+ i*i; writeln(rez); end.