uses crt;
var a:array[1..100]of integer;
i,n,dc,dl:integer;
begin
clrscr;
write('n='); readln(n);
for i:=1 to n do
begin
write('a[',i,']='); readln(a[i]);
end;
{------------------------------xu-ly------------------------------}
dc:=0;
dl:=0;
for i:=1 to n do
begin
if a[i] mod 2=0 then inc(dc)
else inc(dl);
end;
writeln('trong day co ',dc,' so chan va ',dl,' so le');
readln;
end.