uses crt;
var a:array[1..42] of real;
i,n,dem:integer;
nn:real;
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];
for i:=1 to n do
if nn=a[i] then write(i:4);
writeln;
dem:=0;
for i:=1 to n do
if a[i]>=8 then inc(dem);
writeln(dem);
readln;
end.