uses crt;
var a:array[1..100]of integer;
i,n,vt:integer;
begin
clrscr;
write('Nhap n='); readln(n);
for i:=1 to n do
begin
write('A[',i,']='); readln(a[i]);
end;
vt:=0;
for i:=1 to n do
if a[i]<0 then
begin
vt:=i;
break;
end;
if vt=0 then writeln('Khong co so am trong day')
else writeln('Vi tri so am dau tien cua day la: ',vt);
readln;
end.