Baltic archaeologists are currently engaged in a very important project and have recently found an ancient manuscript that seems to be crucial for the understanding of the culture that inhabited the area they are exploring. The manuscript is full of drawings, so scientists are able to get a general feel for the subject of the document.
However, there is also a written part, and with that scientists are in trouble. Apart from the language used in the writing being a very ancient, several parts of manuscript were destroyed, some letters disappeared, and they are unable to completely understand what is written there.
One of the scientists said, that the words in the manuscript remind him of a language
about which it is known that in any word there may be no more than
Note: vowels are aeiou
and there are 21 other letters in the alphabet - consonants.
Input Specification
The first line of the input file contains four integers
*
.
Output Specification
One integer, describing in how many ways it is possible to make up a legal word based only on the constraints given. You may assume that the answer will fit into a 64-bit signed integer. It may happen that scientist's conjecture about the language is incorrect and that there are no ways to make up a legal word; in this case, the answer is, obviously, 0.
Sample Input 1
1 1 1 1
a**
Sample Output 1
105
Sample Input 2
1 1 1 1
b*i
Sample Output 2
0
Sample Input 3
1 2 1 2
ancient
Sample Output 3
1
Sample Input 4
4 4 4 4
man****ipt
Sample Output 4
261870
Sample Input 5
2 2 2 2
*boi*
Sample Output 5
546
Comments