program b1;
uses crt;
var i,n: integer; a:array[1..100] of integer;
begin
clrscr;
write('nhap vao so nguyen n :');
readln(n);
for i:=1 to n do
begin
write('a[',i,']='); readln(a[i]);
end;
write('Cac so chan la:');
for i:=1 to n do if a[i] mod 2=0 then
write( a[i],' ');
readln;
end.