const fi='b9.txt'
fo='kqb9.txt'
var f1,f2:text;
n,i:integer;
begin
assign(f1,fi); reset(f1);
assign(f2,fo); rewrite(f2);
readln(f1,n);
for i:=2 to n do
if trunc(sqrt(i))=sqrt(i) then write(f2,i:4);
close(f1);
close(f2);
end.
const fi='b9.txt'
fo='kqb9.txt'
var f1,f2:text;
n,i:integer;
begin
assign(f1,fi); reset(f1);
assign(f2,fo); rewrite(f2);
readln(f1,n);
for i:=2 to n do
if trunc(sqrt(i))=sqrt(i) then write(f2,i:4);
close(f1);
close(f2);
end.