Var
fi,fo:text;min,i,n,d:integer;
a:array[1..100] of integer;s:string;
begin
assign(fi,'t.inp');reset(fi);
assign(fo,'t.out');rewrite(fo);
readln(fi,n);
For i:=1 to n do read(fi,a[i]);
readln(fi,s);min:=a[1];d:=0;
For i:=1 to n do
Begin
If a[i]<min then begin min:=a[i];vt:=i;
If a[i] mod 2<>0 then d:=d+1;
end;
For i:=1 to length(s) do S[i]:=Upcase(s[i]);
writeln(fo,vt);writeln(fo,d);writeln(fo,s);
Close(fi);Close(fo);
End.