def checkIfExit(): if 'bob' not in s: return -1 for i in range(len(s)): if s[i:i+3] == 'bob': return i s = input().lower() print(checkIfExit())