uses crt;
var x:array[1..100]of integer;
n,i,dem:integer;
begin
clrscr;
write('Nhap n='); readln(n);
for i:=1 to n do
begin
write('X[',i,']='); readln(x[i]);
end;
dem:=0;
for i:=1 to n do
if x[i] mod 2=0 then inc(dem);
writeln('So phan tu chan la: ',dem);
readln;
end.