Question
Span Quest

Lila is given a string T. Determine the length of the longest substring that begins with 'b' and concludes with 'y'.

Input
The first line of the input contains a single string T.
Output
Print the length of the longest substring that starts with 'b' and ends with 'y' in string T.
Example
Sample Input
ubahgzahgny
Sample Output
10

Online