uses crt;
var a:array[1..100]of integer;
n,i:integer;
begin
clrscr;
write('Nhap n='); readln(n);
for i:=1 to n do
begin
write('A[',i,']='); readln(a[i]);
end;
writeln('Nua dau cua mang la: ');
for i:=1 to n div 2 do
write(a[i]:4);
writeln;
writeln('Nua cuoi cua mang la: ');
for i:=(n div 2)+1 to n do
write(a[i]:4);
readln;
end.