uses crt;
var n,i:integer;
a:array[1..100]of integer;
begin
clrscr;
write('n='); readln(n);
for i:=1 to n do
begin
write('a[',i,']='); readln(a[i]);
end;
{------------------------------xuat------------------------------}
writeln('cac so nguyen am la: ');
for i:=1 to n do
if a[i]<0 then write(a[i]:4);
readln;
end.