uses crt;
const fi='dulieu.inp'
var f1:text;
i,n,dem:integer;
a:array[1..100]of integer;
begin
clrscr;
assign(f1,fi); reset(f1);
n:=0;
while not eof(f1) do
begin
n:=n+1;
read(f1,a[n]);
end;
dem:=0;
for i:=1 to n do
if a[i]<0 then dem:=dem+1;
writeln(dem);
close(f1);
readln;
end.