uses crt;
var a:array[1..100]of integer;
i,n,t:integer;
begin
clrscr;
write('n='); readln(n);
for i:=1 to n do
begin
write('a[',i,']='); readln(a[i]);
end;
writeln('Day so ban vua nhap la:');
for i:=1 to n do write(a[i]:4);
writeln;
t:=0;
for i:=1 to n div 2 do
t:=t+a[i];
writeln('Tong cac phan tu o nua day dau la: ',t);
readln;
end.