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('Cac so am la: ');
for i:=1 to n do
if a[i]<0 then write(a[i]:4);
writeln;
writeln('Cac so duong la: ');
for i:=1 to n do
if a[i]>0 then write(a[i]:4);
readln;
end.