Program HOC24;
var i,n,d,d1: integer;
a: array[1..100] of integer;
begin
write('Nhap N: '); readln(n);
for i:=1 to n do
begin
write('A[',i,']='); readln(a[i]);
end;
d:=0; d1:=0;
for i:=1 to n do
begin
if a[i] <0 then d:=d+1;
if a[i]>0 then d1:=d1+1;
end;
writeln('Co ',d,' so duong trong mang');
write('Co ',d1,' so am trong mang');
readln
end,