uses crt;
const fi='vtmin.out'
var a:array[1..100]of integer;
i,n,min:integer;
f1:text;
begin
clrscr;
write('Nhap n='); readln(n);
for i:=1 to n do
begin
write('A[',i,']='); readln(a[i]);
end;
assign(f1,fi); rewrite(f1);
min:=a[1];
for i:=1 to n do
if min>a[i] then min:=a[i];
for i:=1 to n do
if min=a[i] then write(f1,i:4);
close(f1);
readln;
end.