Const
n=15;
type
tm=array [1..n] of real;
function fk(a:tm):integer;
var
i,k:integer;
m:real;
begin
m:=0;
for i:=1 to n do
m:=m+a[i];
m:=m/n;
k:=0;
for i:=1 to n do
if a[i] fk:=k
end;
var
a:tm;
i:integer;
begin
for i:=1 to n do
begin
a[i]:=cos(5*i)-1/sqrt(i*i*i+9);
Write(a[i]:13:9)
end;
Writeln;
Writeln('Элементов меньше среднего: ',fk(a))
end.