uses crt;
var a:array[1..500]of integer;
i,n,dem:integer;
begin
clrscr;
write('n='); readln(n);
for i:=1 to n do
begin
write('a[',i,']='); readln(a[i]);
end;
{------------------------xu-ly-------------------------}
dem:=0;
for i:=1 to n do
if a[i] mod 2=0 then
begin
write(a[i],' ');
inc(dem);
end;
writeln;
writeln('so phan tu chan trong day la: ',dem);
readln;
end.