var n, i, k, a: integer;
begin readln(n); k := 0; for i := 1 to n do begin readln(a); if trunc(sqrt(a)) * trunc(sqrt(a)) = a then k := k + 1; end; writeln(k);end.
var
n, i, k, a: integer;
begin
readln(n);
k := 0;
for i := 1 to n do
begin
readln(a);
if trunc(sqrt(a)) * trunc(sqrt(a)) = a then k := k + 1;
end;
writeln(k);
end.