varx, a, b, s: integer;beginreadln(a);readln(b);s := 0;
for x := a to b dobegins := s + x*x;end;
writeln(s);end.
var
x, a, b, s: integer;
begin
readln(a);
readln(b);
s := 0;
for x := a to b do
begin
s := s + x*x;
end;
writeln(s);
end.