program nts;
uses crt;
var a,b,i,s,dem:longint;
begin
clrscr;
write('a='); readln(a);
write('b='); readln(b);
if a<b then
begin
for i:=a to b do
if sqr(round(sqrt(i)))=i then
begin
write(i,' ');
s:=s+i; dem:=dem+1;
end;
writeln;
writeln('tong=',s);
write('trung binh=',s/dem:3:2);
end;
readln;
end.