from types import new_class
str=input()
new_str=str.lower()
b=new_str.find('bob')
print(b)