Codeforces Round 378 (Div. 2)
A
Grasshopper And the String
Codeforces
1000
原题
←B →
翻译中…

One day, the Grasshopper was jumping on the lawn and found a piece of paper with a string. Grasshopper became interested what is the minimum jump ability he should have in order to be able to reach the far end of the string, jumping only on vowels of the English alphabet. Jump ability is the maximum possible length of his jump.

翻译中…

Formally, consider that at the begginning the Grasshopper is located directly in front of the leftmost character of the string. His goal is to reach the position right after the rightmost character of the string. In one jump the Grasshopper could jump to the right any distance from $1$ to the value of his jump ability.

翻译中…

image The picture corresponds to the first example.

翻译中…

The following letters are vowels: 'A', 'E', 'I', 'O', 'U' and 'Y'.

翻译中…

Input

翻译中…

The first line contains non-empty string consisting of capital English letters. It is guaranteed that the length of the string does not exceed 100.

翻译中…

Output

翻译中…

Print single integer $*a*$ — the minimum jump ability of the Grasshopper (in the number of symbols) that is needed to overcome the given string, jumping only on vowels.

翻译中…

样例

Input #1
ABABBBACFEYUKOTT
Output #1
4
InputCopy OutputCopy
Input #2
AAA
Output #2
1
InputCopy OutputCopy
题目信息
题号
733A
时间限制
1 s
内存限制
256 MB
标签
模拟

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。