var a:array [1..10] of integer;
i,n,s:integer;
begin
s:=0;
for i:=1 to 10 do
a[i]:=random(101);
for i:=1 to 10 do
write ('a[',i,']=',a[i],' ');
writeln;
for i:=1 to 10 do
if (a[i] mod 2=0) then begin
sum:=sum+a[i];
write ('a[',i,']=',a[i],' '); end;
writeln;
write (sum);
end.