uses crt;
var a:array[1..200]of integer;
i,n,t:integer;
begin
clrscr;
write('Nhap n='); readln(n);
for i:=1 to n do
begin
write('A[',i,']='); readln(a[i]);
end;
writeln('Mang nguoc la: ');
for i:=n downto 1 do
write(a[i]:4);
writeln;
t:=0;
for i:=1 to n do
if (a[i] mod 2=0) and (i mod 2=1) then t:=t+a[i];
writeln('Tong cac so chan co chi so le la: ',t);
writeln('Cac so chia het cho 2 va 5 la: ');
for i:=1 to n do
if (a[i] mod 2=0) and (a[i] mod 5=0) then write(a[i]:4);
readln;
end.