//Не уверена в этом
var f:file of real;
r:integer;
function negativ(var f:file of real):integer;
var r:real;
k:integer;
begin;
assign(f,'text.txt');
reset(f);
while not(Eof(f)) do
begin;
read(f,r);
if r<0 then inc(k);<br>end;
close(f);
negativ:=k;
end;
begin;
r:=negativ(f);
writeln(r);
end.