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.

The following letters are vowels: 'A', 'E', 'I', 'O', 'U' and 'Y'.
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.
none
ABABBBACFEYUKOTT
4
AAA
1
A
1
B
2
AEYUIOAEIYAEOUIYOEIUYEAOIUEOEAYOEIUYAEOUIYEOIKLMJNHGTRWSDZXCVBNMHGFDSXVWRTPPPLKMNBXIUOIUOIUOIUOOIU
39
AEYUIOAEIYAEOUIYOEIUYEAOIUEOEAYOEIUYAEOUIYEOIAEYUIOAEIYAEOUIYOEIUYEAOIUEOEAYOEIUYAEOUIYEOI
1
KMLPTGFHNBVCDRFGHNMBVXWSQFDCVBNHTJKLPMNFVCKMLPTGFHNBVCDRFGHNMBVXWSQFDCVBNHTJKLPMNFVC
85
QWERTYUIOPASDFGHJKLZXCVBNMQWERTYUIOPASDFGHJKLZXCVBNMQWERTYUIOPASDFGHJKLZXCVBNMQWERTYUIOPASDFGHJKLZ
18
PKLKBWTXVJ
11
CFHFPTGMOKXVLJJZJDQW
12
TXULTFSBUBFLRNQORMMULWNVLPWTYJXZBPBGAWNX
9
DAIUSEAUEUYUWEIOOEIOUYVYYOPEEWEBZOOOAOXUOIEUKYYOJOYAUYUUIYUXOUJLGIYEIIYUOCUAACRY
4
VRPHBNWNWVWBWMFJJDCTJQJDJBKSJRZLVQRVVFLTZFSGCGDXCWQVWWWMFVCQHPKXXVRKTGWGPSMQTPKNDQJHNSKLXPCXDJDQDZZD
101
SGDDFCDRDWGPNNFBBZZJSPXFYMZKPRXTCHVJSJJBWZXXQMDZBNKDHRGSRLGLRKPMWXNSXJPNJLDPXBS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OEOEEIOUUUEUEAAOEOIUYJEYAIYIEIYYEAUOIIYIUOOEUCYEOOOYYYIUUAYIAOEUEIEAOUOIAACAOOUAUIYYEAAAOOUYIAAE
2
AYEYIIEUIYOYAYEUEIIIEUYUUAUEUIYAIAAUYONIEYIUIAEUUOUOYYOUUUIUIAEYEOUIIUOUUEOAIUUYAAEOAAEOYUUIYAYRAIII
2
YOOAAUUAAAYEUYIUIUYIUOUAEIEEIAUEOAUIIAAIUYEUUOYUIYEAYAAAYUEEOEEAEOEEYYOUAEUYEEAIIYEUEYJOIIYUIOIUOIEE
2
UYOIIIAYOOAIUUOOEEUYIOUAEOOEIOUIAIEYOAEAIOOEOOOIUYYUYIAAUIOUYYOOUAUIEYYUOAAUUEAAIEUIAUEUUIAUUOYOAYIU
1
ABBABBB
4
ABCD
4
XXYC
3
YYY
1
ABABBBBBBB
8
YYYY
1
YYYYY
1
AXXX
4
YYYYYYY
1
BYYBBB
4
YYYYYYYYY
1
CAAAAA
2
CCCACCCC
5
ABABBBACFEYUKOTTTT
5
AABBYYYYYYYY
3
BYBACYC
2
Y
1
ABBBBBB
7
BACDYDI
3
XEXXXXXXXXXXXXXXX
16
TTYTT
3
AAYBC
3
ABABBBACFEYUKOTTTTT
6
YYAYY
1
YZZY
3
YY
1
ZZYZZ
3
YBBBY
4
BBBACCCCCCC
8
YBBBBY
5
YYYYYYYYYY
1
ABABBBBBBBBBBBB
13
#a=1
#print (type(a))


#x=3
#print((x>=0 and x<10)+(x%2!=0))


#a=int(input('输入数字'))
#if (a%2==0):
#    print('yes')
#else:
#    print('no')


#for i in range(10):
#    print(i)


#for i in range(15,2,-2):
#    print(i)


#str1=('Bellcode')
#for i in str1:
#    print(i+i)


#a=0
#str1=('20210624')
#for i in str1:
#    if (i=='0'):
#        a=a+1
#print(a)


#str1=('Bellcode')
#for i in str1:
#    if (i=='o'):
#        break;
#    print(i)


#str1=('Bellcode')
#for i in str1:
#    if (i=='o'):
#        print(i)
#        break;


#str1=('Bellcode')
#for i in str1:
#    print(i)
#    if (i=='o'):
#        break;


#str1=('Bellcode')
#for i in str1:
#    if (i=='o'):
#        continue;
#    print(i)


#str1=('Bellcode')
#for i in str1:
#    print(i)
#    if (i=='o'):
#        continue;


#str1='Bellcode'
#for i in str1:
#    if (i=='l'):
#        break;
#print(i)


#str1='bellcode'
#print(str1)
#for i in str1:
#    if (i=='e'):
#        continue;
#print(i)


#a=int(input('输入数字'))
#b=int(input('输入数字'))
#if a==b:
#    print('yes')
#else:
#    print('no')


#print('hello\n''world\n')
#print('hello\\''world\\')
#print('♪(´▽｀)(p≧w≦q)(o゜▽゜)o☆')


#tizhong=int(input('输入你的体重:(kg)'))
#if tizhong>70:
#    print('胖死了!!!!!!!!!!!!!')
#if tizhong<20:
#    print('瘦死了!!!!!!!!!!!!!')
#if tizhong<=70 >=20:
#    print('刚刚好.')


#from turtle import *
#screensize(300,400,'green')
#for i in range(20):
#    forward(100)
#    right(190)


#list1=['a','b','c','d']
#for i,j in enumerate(list1):
#    print(i,j)


#s=float(input())
#zxc=27+23+s/3
#zl=s/1.2
#if zxc>zl:
#    print('Walk')
#if zxc<zl:
#    print('Bike')
#if zxc==zl:
#    print('All')


#x,a,y,b=map(int,input().split())
#print("%.2f"%float((b * y - a * x)/(b - a)))


#a=int(input())
#b=int(input())
#print(round((100.0*b/a),3),'%')


# from math import*
# def dis(a, b, c, d):
#     return sqrt((a-b)**2+(c-d)**2)
# def main():
#     x1,y1=map(int,input().split())
#     x2,y2=map(int,input().split())
#     x3,y3=map(int,input().split())
#     print("{:.2f}".format(((dis(x1,x2,y1,y2)+dis(x1,x3,y1,y3)+dis(x2,x3,y2,y3)))))
# main()


# n=int(input())
# for i in range(n):
#     x,g=map(int,input().split())
#     for i in range(n):
#         if x>=10 or g>=20:
#             print('True')
#         if x<10 and g<20:
#             print('False')


# n=int(input())
# print(n)


# n=8
# ans=8
# n,c=input().split()
# n=int(n)
# c=str(c)
# if c=='y':
#     ans+=5
# n=n-1000
# while n>0:
#     n-=500
#     ans+=4
# print(ans)


# t=bool(False)
# n=int(input())
# if n%3==0:
#     print('3')
#     t=True
# if n%5==0:
#     print('5')
#     t=True
# if n%7==0:
#     print('7')
#     t=True
# if t==False:
#     print('n')


# a1,a2,n=map(int,input().split())
# a=(a2-a1)*n-(a2-a1-1)
# print(a)


# n=int(input())
# list1=[]
# for i in range(n):
#     a=int(input())
#     list1.append(a)
# a=sum(list1)
# print(round((a/n),2))


# a=int(input())
# b=input().split(' ')
# xb=list(map(float,b))
# last=sum(xb)/len(xb)
# print('%.4f'%last)


# m,n=map(int,input().split())
# if m%2==0:
#     m+=1
# if n%2==0:
#     n+=1
# print((m+n)*(m-n+1)/2)


# a,b=map(int,input().split())
# a=a//100+(a%100//10)*10+(a%10)*100
# b=b//100+(b%100//10)*10+(b%10)*100
# print(max(a,b))


# list1=[]
# max=0
# min=100
# yuansushuliang=int(input())
# for i in range(yuansushuliang):
#     a=int(input())
#     list1.append(a)
#     if a>max:
#         max=a
#     if a<min:
#         min=a
# print(max)


# i=1
# s=1
# maxx=0
# n,q=map(int,input().split())
# for i in range(n):
#     j=int(input())
#     if q<j and j-q==1:
#         s+=1
#     else:
#         s=1
#     if s>maxx:
#         maxx=s
#     q=j
# print(maxx)


# n=float(input())
# summ=0
# for i in range(n):
#     a=int(input())
#     summ+=a
# print(summ,summ/n)


# n=int(input())
# a=list(input().split())
# print(max(a))


# summ=0
# x=int()
# cnt=0
# n,k=map(int,input().split())
# summ=n*(n+1)/2
# x=summ
# for i in range(n):
#     if i%k==0:
#         cnt+=1
#         summ-=i
# a=float((x-summ)/cnt)
# b=float(summ/(n-cnt))
# print(round((a),1),round((b),1))


# n=int(input())
# n=str(n)
# summ=0
# for i in range(len(n)):
#     summ+=int(n[i])
# if summ%6==0:
#     print('YES')
# else:
#     print('NO')


# n,k=map(int,input().split())
# gunnimade=list(map(int,input().split()))
# gunnimade.sort()
# print(gunnimade[k])


# import  math
# s=input()
# l=len(s)
# shu=int((l+1)/2)
# c=0
# for i in range (0,shu):
#     c+=math.comb(shu-1,i)
# ans=0
# j=0
# ss=''
# s+='     '
# while j<=l+2:
#     if s[j]!=' ':
#         if s[j+1]==' ':
#             ans+=(c*int(s[j]))
#         else:
#             if s[j+2]==' ':
#                 ss+=s[j]
#                 ss+=s[j+1]
#                 ans+=(c*int(ss))
#                 j+=1
#             else:
#                 if s[j+3]==' ':
#                     ss+=s[j]
#                     ss+=s[j+1]
#                     ss+=s[j+2]
#                     ans+=(c*int(ss))
#                     j+=2
#                 else:
#                     ss+=s[j]
#                     ss+=s[j+1]
#                     ss+=s[j+2]
#                     ss+=s[j+3]
#                     ans+=(c*int(ss))
#                     j+=3
#     j+=1
# print(ans)


# n=int(input())
# list1=list(map(int,input().split()))
# list1.sort()
# for i in range(len(list1)):
#     print(list1[i],end=' ')


# h,r=map(float,input().split())
# v=int()
# ans=int()
# pi=3.1415926535897932384626
# v=pi*r*r*h
# v=int(v)
# if 20000%v!=0:
#     ans=20000//v+1
# else:
#     ans=20000//v
# print(ans+1)


# n,k=1,1
# n=int(input())
# while n>k:
#     n=n-k
#     k+=1
# if k%2==0:
#     print(n,'/',(k+1-n))
# else:
#     print((k+1-n),'/',n)


# N=int(input())
# k=1
# while N > k:
#     N = N - k
#     k += 1
# if ( k % 2 == 0):
#     row = N 
#     col = k-N+1
# else:
#     row = k-N+1
#     col = N
# print(row,"/",col)


# MAX=0
# MIN=0
# l=int(input())
# n=int(input())
# for i in range(n):
#     x=int(input())
#     MAX=max(MAX,max(l+1-x,x));MIN=max(MIN,min(l+1-x,x))
# print(MIN,MAX)


# from math import *
# Xa,Ya=map(float,input().split())
# Xb,Yb=map(float,input().split())
# AB=sqrt(pow(abs(Xb-Xa),2)+pow(abs(Yb-Ya),2))
# print(AB)


# n=int(input())
# for i in range(n):
#     c,d,b=map(int,input().split())
#     e,f,g=int(),int(),int()
#     e+=c
#     f+=d
#     g+=b
# print(e,f,g,e+f+g)


# m,n=map(int,input().split())
# summ=0
# if m<=n:
#     if m%17==0:
#         summ+=1
#         m+=1
#     else:
#         m+=1
# print(summ)


# summ=0
# m,n=map(int,input().split())
# for i in range(m,n+1):
#     if i%17==0:
#         summ+=i
# print(summ)


# n=int(input())
# a=list(map(int,input().split()))
# print(a.count(1))
# print(a.count(5))
# print(a.count(10))


# n=int(input())
# x,y=map(int,input().split())
# n-=1
# for i in range(n):
#     a,b=map(float,input().split())
#     m=y/x
#     n=b/a
# if m-n>0.05:
#     print('worse')
# elif n-m>0.05:
#     print('better')
# else:
#     print('same')


# def akm(m,n):
#     if m==0:
#         return n+1
#     if n==0:
#         return akm(m-1,1)
#     return akm(m-1, akm(m, n-1))
# a,b=map(int,input().split())
# print(akm(a,b))


# string = input()
# num = len(string)
# String = ''
# for i in range(0,num):
#     if(string[i]!=' '):#遇到空格前添加到字符串String
#         String +=string[i]
#     else:#遇到空格输出字符串String
#         print(String[::-1])
#         String = ''#重置为空串
# print(String[::-1])


# a,b=map(int,input().split())
# n=a%b
# ans=a//b
# for i in range(b):
#     print(ans)
# for i in range(n):
#     print(ans+1)


# a=float(input())
# print(a/23)


# from math import sqrt
# n=int(input())
# for i in range(n):
#     x=int(input())
#     x-=1
#     if (sqrt(x*2))*(sqrt(x*2))+1==x*2:
#         print('1\n')
#     else:
#         print('0\n')


# t=int(input())
# a,b,c,d,e=map(int,input().split())
# print(max(min(e-a,d)-max(e-b,c)+1),0)

# m=int(input())
# n=int(input())
# count=0
# 取药列表=list(map(int,input().split()))
# for i in range(0,n):
#     if 取药列表[i]<=m:
#         m-=取药列表[i]
#     else:
#         count+=1
# print(count)

# from math import *
# n=int(input())
# sum = 0.0
# for i in range(n):
#     x,y,p=map(float,input().split())
#     dis = sqrt(x * x + y * y)
#     sum += dis / 50 + p + dis / 50 + p * 0.5
# print(int(ceil(sum)))

# n=int(input())
# for i in range(n):
#     a,b=map(str,input().split())
#     if a[0]==b[0]:
#         print('Tie')
#     elif a[0]=='R':
#         if b[0]=='P':
#             print('Player2')
#         else:
#             print('Player1')
#     elif a[0]=='P':
#         if b[0]=='S':
#             print('Player2')
#         else:
#             print('Player1')
#     elif a[0]=='S':
#         if b[0]=='R':
#             print('Player2')
#         else:
#             print('Player1')

# n=int(input())
# ans=0
# for i in range(n):
#     name,tiwen,kesou=input().split()
#     name=str()
#     tiwen=float()
#     kesou=int()
#     if tiwen>=37.5 and kesou:
#         print(name)
#         ans+=1
# print(ans)

# def f(x,n):
#     if n==1:
#         return x//(1+x)
#     else:
#         return x/(n+f(n-1))
# x,n=map(float,input().split())
# print(round((f(x,n)),2))

# def f(x,n):
#     if n==1:
#         return x//(1+x)
#     else:
#         return x/(n+f(n-1))
# x,n=map(float,input().split())
# a=f(n)
# print(round((a),2))

# n=int(input())
# for i in range(n):
#     xingyun,guli=map(int,input().split())
#     if xingyun<10 and guli <20:
#         print('False')
#     else:
#         print('True')

# list1=list(map(float,input().split()))
# list1.sort()
# list1.pop()
# list1.pop(0)
# a=sum(list1)
# a/=len(list1)
# round(a),2
# print("%.2f"%(a))

# n=int(input())
# a=list(map(int,input().split()))
# sum1,sum2,sum3,sum4=0,0,0,0
# for i in range(0,n):
#     if a[i]>=0 and a[i]<=18:
#         sum1+=1
#     elif a[i]>=19 and a[i]<=35:
#         sum2+=1
#     elif a[i]>=36 and a[i]<=60:
#         sum3+=1
#     elif a[i]>61:
#         sum4+=1
# all=sum1+sum2+sum3+sum4
# print("%.2f"%(all/sum1*100))
# print("%.2f"%(all/sum2*100))
# print("%.2f"%(all/sum3*100))
# print("%.2f"%(all/sum4*100))

# n=int(input())
# for i in range(2,n+1):
#     if n%i==0:
#         print(n//i)
#         break;

# cnt=0
# a,b,c=map(int,input().split())
# for i in range(c//a):
#     y=(c-a*i)//b
#     if a*i+b*y==c:
#         cnt+=1
# print(cnt+1)

# ans=0
# people=0
# k=str(input())
# if k[0]=='+':
#     people+1 
# elif k[0]=='-':
#     people-1 
# else:
# 	z=k.find(':')
# 	ans+=people*(k.size()-1-z)
# print(ans)

# n=int(input())
# a=list(map(int,input().split()))
# sorted(a)
# count=0
# for i in range(0,len(a)-1):
#     count+=a[i]
# print(count)


# list1=list(map(int,input().split()))
# a=list1[0]*28.9
# b=list1[1]*32.7
# c=list1[2]*45.6
# d=list1[3]*78
# e=list1[4]*35
# f=list1[5]*86.2
# g=list1[6]*27.8
# h=list1[7]*43
# i=list1[8]*56
# j=list1[9]*65
# summ=a+b+c+d+e+f+g+h+i+j
# print("%.1f"%(summ))

# n=int(input())
# a=list(map(int,input().split()))
# a.reverse()
# for i in range(0,len(a)):
#     print(a[i],'',end='')

# n=int(input())
# a=list(map(int,input().split()))
# chazhaozhi=int(input())
# if chazhaozhi in a:
#     print(a.index(chazhaozhi))
# else:
#     print('-1')

# a,b,c=map(int,input().split())
# print(a**b%c)

# n=int(input())
# a=[]
# for i in range(n):
#     aa=str(input())
#     a.append(aa)
# s = "".join(a)
# s=int(s)
# count=0
# if a[0]!=a[-1]:
#     b=a[:1][0]
#     c=a[1:]
#     c.append(b)
#     a=c
#     count+=1
# print(count)

#猜拳小游戏开始啦！
# from random import *
# list1=['剪刀','石头','布']
# player=str(input())
# if player in list1:
#     computer=choice(list1)
#     #computer=randint(list1)
#     if computer==player:
#         print('tie!')
#     elif (computer=='剪刀' and player=='石头') or (computer=='石头' and player=='布') or (computer=='布' and player=='剪刀'):
#         print('player win!')
#     else:
#         print('computer win!')
# else:
#     print('The option you entered is not recognized!')

# n=int(input())
# print(hex(int(n)))

# n=int(input())
# for i in range(n):
#     x,y=map(int,input().split())
#     x1,y1=map(int,input().split())
#     x2=abs(x1-x)
#     y2=abs(y1-y)
#     m=max(x2,y2)
#     n=min(x2,y2)
#     if n!=0:
#         a=m%n
#         while a!=0:
#             m=n
#             n=a
#             a=m%n
#         if n==1:
#             print('no')
#         else:
#             print('yes')

# n,m=map(int,input().split())
# cnt=0
# for i in range(1,n+1):
#     if i**m<=n:
#         cnt+=1
# print(cnt)

# a=str(input())
# qq=0
# ok=0
# if a[0]!='M' or a[1]!='D' or a[2]!='A':
#     print('1 1 1 1 1')
# else:
#     a=list(a)
#     a.reverse()
#     for i in range(0,len(a)):
#         if a[i]=='1' or a[i]=='9':
#             qq=1
#             ok=1
#         if a[i]=='2' or a[i]=='8':
#             qq=2
#             ok=1
#         if a[i]=='3' or a[i]=='7':
#             qq=3
#             ok=1
#         if a[i]=='4' or a[i]=='6':
#             qq=4
#             ok=1
#         if a[i]=='0' or a[i]=='5':
#             qq=5
#             ok=1
#         if ok:
#             break;
# for i in range(5):
#     if qq!=i:
#         print('0',' ',end='')
#     else:
#         print('1',' ',end='')

# n,m=map(int,input().split())
# a=list(map(int,input().split()))
# b=list(map(int,input().split()))
# for i in range(0,len(b)):
#     print(a[b[i]-1])

# n=int(input())
# for i in range(n):
#     x=int(input())
#     if x and 1:
#         print("zs wins")
#     else:
#         print('pb wins')

# n=int(input())
# ans=0.0
# for i in range(n):
#     a,b=map(float,input().split())
#     ans+=a*b
# print('%.1f'%(ans*0.85-0.049))

# str1=str(input())
# str2=str(input())
# a=int(str1[0])
# b=int(str1[2])
# c=int(str2[0])
# d=int(str2[2])
# a*=c
# b*=d
# c=a
# d=b
# while c!=d:
#     if c>d:
#         c-=d
#     else:
#         d-=c
# ww=d
# a/=ww
# b/=ww
# print(int(b),int(a))

# s=str(input())
# leng=s.len();
# if s[leng-1]=='o' or s[0]=='o':
# 	print("o")
# if s[leng-1]=='x' and s[0]=='x':
# 	print("x")

# a=str(input())
# a=a[0:2]+' 100'
# print(a)

# a=int(input())
# s1=int(input())
# s2=int(input())
# a=0
# for i in range(0,a):
#     if s1[i]>s2[i]:
#         a+=min(s2[i]+10-s1[i],s1[i]-s2[i])
#     else:
#         a+=min(s1[i]+10-s2[i],s2[i]-s1[i])
# print(a)

# n=int(input())
# a=list(map(int,input().split()))
# b=list(map(int,input().split()))
# summ=0
# for i in range(0,n):
#     summ+=a[i]*b[i]
# print(summ)

# a,k,n=map(int,input().split())
# h=0
# for i in range(a,n+1):
#     if a<n:
#         a+=k
#         h+=1
# print(h-1)

# n=int(input())
# summ=0
# ans=0
# x=list(map(int,input().split()))
# for i in range(0,n):
#     if x[i]==-1:
#         if summ>0:
#             summ-=1
#         else:
#             ans+=1
#     elif x[i]>0:
#         summ+=x[i]
# print(ans)

# a=str(input())

# a=str(input())
# s=0
# for i in range(len(a)):
#     if a[i]=='A':
#         s+=1
#     elif a[i]=='1':
#         s+=10
#     else:
#         s+=int(a[i])
# print(s)

# n,b,d=map(int,input().split())
# a=list(map(int,input().split()))
# he=0
# h=0
# for i in range(0,n):
#     if a[i]>b:
#         a[i]=0
#         h+=a[i]
#     if h>d:
#         he+=1
#         h=0
# print(he)

# s=str(input())
# v=0
# for i in range(0,len(s)):
#     if s[i]=='0' or s[i]=='4' or s[i]=='6' or s[i]=='9' or s[i]=='A' or s[i]=='D':
#         v+=1
#     elif s[i]=='8' or s[i]=='B':
#         v+=2
#     else:
#         v+=int(s[i])
# print(v)

# ele_used = int(input())
# if ele_used <= 150:
#         ele_fees = ele_used * 0.4463
# elif ele_used <= 400:
#         ele_fees = (ele_used-150)*0.4663 + 150*0.4463
# else:
#         ele_fees = 150*0.4463 + 250*0.4663 + (ele_used-400)*0.5663
# ele_fees = round(ele_fees,1)
# print(ele_fees)

p=str(input())
a=-1
m=0
for x in range(0,len(p)):
    if p[x]=='A' or p[x]=='E' or p[x]=='I' or p[x]=='O' or p[x]=='U' or p[x]=='Y':
        m=max(m,x-a)
        a=x
print(max(m,int(len(p)-a)))