uses crt;
var i,n,nn:integer;
a:array[1..100]of integer;
begin
clrscr;
readln(n);
for i:=1 to n do readln(a[i]);
nn:=a[1];
for i:=1 to n do
if nn>a[i] then nn:=a[i];
writeln(nn);
for i:=n downto 1 do
if nn=a[i] then
begin
write(i);
break;
end;
readln;
end.