program ct;
uses crt;
var i,n,d1,d2,tongchan,tongle:integer;
A:array[1..100] of integer;
begin
clrscr;
write('nhap n:=');readln(n);
for i:=1 to n do
begin
write('nhap mang A[',i,']:=');readln(A[i]);
end;
d1:=0; d2:=0; tongchan:=0; tongle:=0;
for i:=1 to n do
begin
if A[i]>0 then d1:=d1+1;
if A[i]<0 then d2:=d2+1;
if A[i] mod 2=0 then tongchan:=tongchan+A[i] else tongle:=tongle+A[i];
end;
writeln('co',d1,' so duong');
writeln('co',d2,' so am');
writeln('tong so chan la:',tongchan);
writeln('tong so le la:',tongle);
readln
end.