eolymp
bolt
Try our new interface for solving problems
Problems

English

English

There are 26 letters in English alphabet, of which 5 ('a', 'e', 'i', 'o', 'u') - are vowels, 20 are consonants and one is considered a semivowel, i.e. neither a vowel nor a consonant (letter 'y'). A word is sonorous if the number of vowels in it exceeds the number of consonants. If a word contains some letter more than once, then each its occurrence counts - for example, "alabama" is a sonorous word.

For a given word determine the least number of letters in it which must be replaced to obtain a sonorous word.

Input

A single line contains the word given. The length of the word does not exceed 1000 letters. The word consists of lowercase letters.

Output

Print the least number of letters replacement of which makes the given word sonorous.

Time limit 1 second
Memory limit 128 MiB
Input example #1
dog
Output example #1
1
Input example #2
alabama
Output example #2
0
Input example #3
y
Output example #3
1
Author Eldar Bogdanov
Source 2011 Winter School, Kharkov, Day 7