program prog;
const
N=10;
var
a : array [1..N] of integer;
i, p : integer;
begin
randomize;
for i:=1 to N do
a[i]:=random(100);
for i:=1 to N do
write(a[i]:4) ;
p:=0;
for i:=1 to 10 do
if (a[i] > 3) and (a[i] < 10) then
p:=p+1;
writeln;
write(p)
end.