const
n = 10;
var
i, x, q: integer;
begin
for i := 1 to n do
read(x);
q := trunc( sqrt(x) );
if sqr(q) = x then
write(x,' ');
end;
end.
const
n = 10;
var
i, x, q: integer;
begin
for i := 1 to n do
begin
read(x);
q := trunc( sqrt(x) );
if sqr(q) = x then
write(x,' ');
end;
end.