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.


-----Examples-----
Input
ABABBBACFEYUKOTT

Output
4
Input
AAA

Output
1

Difficulty: interview

Starter code:

Solutions:
# You lost the game.

s = str(input())
n = len(s)
d = -1
r = 0
V = "AEIOUY"
for i in range(n):
    if V.count(s[i]):
        r = max(r,i-d)
        d = i
print(max(r, n-d))


s = 'A' + input() + 'A'
a = 'AEIOUY'
ans = 0
last = 0
for i in range(len(s)):
    if s[i] in a:
        ans = max(ans, i - last)
        last = i
print(ans)


3

vowels = ['A', 'E', 'I', 'O', 'U', 'Y']
s = 'A' + input() + 'A'

arr = [i for i in range(len(s)) if s[i] in vowels]
diffs = [arr[i + 1] - arr[i] for i in range(len(arr) - 1)]

print(max(diffs))


jump = ['A', 'E', 'I', 'O', 'U', 'Y']

ans = 1
s = input()
j = 1
for i in s:
    if i in jump:
        ans = max(ans, j)
        j = 0
    j += 1
ans = max(ans, j)
print(ans)

s = input()
a = [0]
for i in range(len(s)):
    if s[i] in 'AEIOUY':
        a.append(i + 1)
a.append(len(s) + 1)
ans = 0
for i in range(1, len(a)):
    ans = max(ans, a[i] - a[i - 1])
print(ans)

s = "A" + input() + "A"
ans = 0
prev = -1
for i in range(len(s)):
    if (s[i] in "AEIOUY"):
        ans = max(ans, i - prev)
        prev = i
print (ans)

S = input()
vowels = 'AEIOUY'
S += 'A'
prev_pos = -1
max_jump = 0
for i, ch in enumerate(S):
    if ch in vowels:
        next_pos = i
        max_jump = max(max_jump, next_pos - prev_pos)
        prev_pos = next_pos
print(max_jump)


field = "A" + input() + "A"
letters = ["A", "E", "I", "O", "U", "Y"]
ans = 1
last_let = 0
for i in range(len(field)):
    let = field[i]
    if let in letters:
        ans = max(ans, i - last_let)
        last_let = i
print(ans)

s = input()
a = 'AOUYEI'
s += 'A'
ans = -1
now = -1
n = len(s)
for i in range(0, n):
    if s[i] in a:
        #print(i)
        ans = max(ans, i - now)
        now = i
print(ans)

#!/usr/bin/env python3

from   functools import reduce
from   operator  import add
import re


def main():
    try:
        while True:
            print(reduce(max, (len(m.group()) for m in re.finditer(r"[^AEIOUY]+", input())), 0) + 1)

    except EOFError:
        pass


main()


s = input()
a = [-1]
for i in range(len(s)):
    if s[i] in ['A', 'E', 'I', 'O', 'U', 'Y']:
        a += [i]
a += [len(s)]
ans = -1
for i in range(1, len(a)):
    ans = max(ans, a[i] - a[i - 1])
print(ans)

a = input()
b = ['A', 'E', 'I', 'O', 'U', 'Y']
m = 1
c = 0
for i in range(len(a)):
    if a[i] in b:
        c = 0
    else:
        c += 1
    m = max(m, c + 1)
print(m)

s = input()
a = "AEUYEOI"
pos = [0]
for i in range(len(s)):
    if s[i] in a:
        pos.append(i + 1)
pos.append(len(s) + 1)
max_ = pos[1] - pos[0]
for i in range(2, len(pos)):
    max_ = max(max_, pos[i] - pos[i - 1])
print(max_)

s = input()
s = 'A' + s
s += 'A'
gl = ['A', 'E', 'I', 'O', 'U', 'Y']
a = []
for i in range(len(s)):
    if s[i] in gl:
        a.append(i)
ans = -1
for i in range(1, len(a)):
    ans = max(ans, a[i] - a[i - 1])
print(ans)


import math,sys,re,itertools,pprint,collections
ri,rai=lambda:int(input()),lambda:list(map(int, input().split()))

s = input()
t = list([len(x) for x in re.split(r"[AEIOUY]+", s)])

print(max(t) + 1)


s = input()
d = ['A', 'E', 'I', 'O', 'U', 'Y']
p = 0
m = 0
for i in range(len(s)):
    if s[i] in d:
        if i + 1 - p > m:
            m = i + 1 - p
        p = i + 1
if len(s) + 1 - p > m:
    m = len(s)  + 1 - p
print(m)

s = input()
last = -1
ans = -1
for i in range(len(s)):
    if s[i] in 'AEIOUY':
        ans = max(ans, i - last)
        last = i
ans = max(ans, len(s) - last)
print(ans)


s = "A" + input() + 'A'

counter = 0
ans = 0
last = 0

for i in range(1, len(s)):
    if s[i] in "AEIOUY":
        counter = i - last
        last = i
        if counter > ans:
            ans = counter

print(ans)


s = input()

ans = 1
cnt = 0
for c in s:
	cnt += 1
	if c in ['A', 'I','U','E','O','Y']:
		ans = max(cnt, ans)
		cnt = 0

ans = max(ans, cnt+1)
print(ans)


s = input()
t = ['A', 'E', 'I', 'O', 'U' , 'Y']
cur = -1
n = len(s)
m = 0
for i in range(n):
    if s[i] in t:
        m = max(m, i - cur)
        cur = i
m = max(n - cur, m)
print(m)

s = 'A' + input() + 'A'
G = {'A', 'E', 'I', 'O', 'U', 'Y'}
ans = 1
t = 0
for i in s:
    if i not in G:
        t += 1
        if t > ans:
            ans = t
    else:
        t = 1
print(ans)
            


import sys

LETTERS = {'A', 'E', 'I', 'O', 'U', 'Y'}


line = sys.stdin.readline().strip()

max_count = 0
current_count = 0


for ch in line:
    if ch in LETTERS:
        max_count = max(max_count, current_count)
        current_count = 0
    else:
        current_count += 1

max_count = max(max_count, current_count)
print(max_count + 1)


s = input()
s = s + 'A'
m = 0
cur = -1
while cur != len(s)-1:
    i = cur+1
    while s[i] not in ['A','E','Y','U','I','O']:
        i+=1
    m = max(m,i-cur)
    cur = i
print(m)


s=list(input())+["A"]
ans=1
k=0
l=['A','E','I','O','U','Y']
for x in s:
    k+=1
    if ans<k: ans=k
    if x in l: k=0
print(ans)

import sys

fin = sys.stdin
fout = sys.stdout
m = -1
gl = {'A', 'E', 'I', 'O', 'U', 'Y'}
s = fin.readline().strip()
cur = -1
for i in range(len(s)):
    if s[i] in gl:
        m = max(m, i - cur)
        cur = i
m = max(m, len(s) - cur)
fout.write(str(m))