uses crt;
var h:array[1..100]of integer;
n,i,t:integer;
begin
clrscr;
write('Nhap n='); readln(n);
for i:=1 to n do
begin
write('H[',i,']='); readln(h[i]);
end;
t:=0;
for i:=1 to n do
if h[i] mod 2=0 then t:=t+h[i];
writeln('Tong cac so chia het cho 2 la: ',t);
readln;
end.