uses crt;
var a:array[1..100]of integer;
n,i,t:integer;
begin
clrscr;
write('Nhap n='); readln(n);
for i:=1 to n do
begin
write('A[',i,']='); readln(a[i]);
end;
writeln('Day ban vua nhap la: ');
for i:=1 to n do
write(a[i]:4);
writeln;
writeln('Cac phan tu o vi tri le trong day la: ');
for i:=1 to n do
if i mod 2=1 then write(a[i]:4);
writeln;
t:=0;
for i:=1 to n do
if a[i] mod 2=0 then t:=t+a[i];
writeln('Tong cac so chan trong day la: ',t);
readln;
end.