uses crt;
const fo='mang_chan.out';
var f1:text;
a:array[1..100]of integer;
n,i:integer;
begin
clrscr;
assign(f1,fo); rewrite(f1);
write('n='); readln(n);
for i:=1 to n do
begin
write('a[',i,']='); readln(a[i]);
end;
for i:=1 to n do
if a[i] mod 2=0 then write(f1,a[i]:4);
close(f1);
readln;
end.