1t=int(input())
2while(t!=0):
3 s=input()
4 v='aeiou'
5 flag=0
6 for i in range(len(s)):
7 if s[i] not in v:
8 if s[i+1] in v:
9 flag+=1
10 else:
11 print('NO')
12 break
13 else:
14 #if s[i] in v:
15 flag+=1
16 if flag == len(s):
17 print('YES')
18 t=t-1