using System;
public class Program {
public static void Main() {
int ans=-1;
char [] BOB={'b','o','b'};
int text=0;
string item=Console.ReadLine();
string newitem=item.ToLower();
for(int i=0;i<newitem.Length;i++)
{
if(newitem[i]==BOB[text])
{
text++;
}else if(newitem[i]=='b')
{
text=1;
}else{
text=0;
}
if(text==3)
{
ans=i-2;
break;
}
}
Console.WriteLine(ans);
}
}



京公网安备 11010502036488号