Devugar Python

t=int(input())
while(t!=0):
  s=input()
  v='aeiou'
  flag=0
  for i in range(len(s)):
    if s[i] not in v:
      if s[i+1] in v:
        flag+=1
      else:
        print('NO')
        break
    else:
       #if s[i] in v:
         flag+=1
    if flag == len(s):
        print('YES')
  t=t-1        
Fancy Frog