k=input("k = ");
c=0;
for p=1:k
  c=c+p^2;
end;
disp(c);
