program ct;
uses crt;
var s,i,n:integer;
A:array[1..100] of integer;
begin
clrscr;
write('nhap n:=');readln(n);
for i:=1 to n do
begin
write('nhap mang A[',i,']:=');readln(A[i]);
end;
s:=0;
for i:=1 to n do
if A[i] mod 2=0 then
begin
writeln('so chan trong day la:',A[i]);
s:=s+A[i];
end;
writeln('tong cac so:',s);
readln
end.