eolymp
bolt
Try our new interface for solving problems
Problems

Superstring

Superstring

The superstring consists of Latin alphabet. Vowels are considered to be letters a, e, i, o, u, y, A, E, I, O, U, Y. Calculate the number of ways of splitting the given superstring into words. A word is a sequence of letters containing at least one vowel letter.

The length of a substring does not exceed 200 characters. The number of partitions does not exceed 2 * 109.

Input

The first line contains the number n (1n50000). Then n superstrings are given.

Output

Print n numbers - the number of possible ways to split the corresponding superstring.

Time limit 1 second
Memory limit 128 MiB
Input example #1
3
AbbA
bv
aaab
Output example #1
4
0
4