a,
Var a: array (1...250)of integer;
      n,i,t: integer;
begin
 write (' nhap so luong phan tu:'); readln (n);
 t:=0;
 for i:=1 to n do 
  begin
   write ('A(',i,')=');
   readln (A(i));
   if (A(i) mod 2=0) then t:=t+ A(i);
  end;
write('tong cac phan tu chan trong day:',t);
readln;
end.