Haiku is an ancient form of Japanese poetry. A haiku is a three-line poem with seventeen syllables, where the first line must contain five syllables, the second line must contain seven syllables, and the third line must contain five syllables. The lines do not have to rhyme. Here is an example, where slashes (/) separate the lines.
Computer programs/The bugs try to eat my code/I must not let them.
Write a program that reviews a haiku and checks that each line contains the correct number of syllables.
For this problem, syllables are counted as follows. Every contiguous sequence of one or more vowels counts as one syllable, where the vowels are a, e, i, o, u, and y. Every word contains at least one syllable.
(Note that this method of counting syllables does not always agree with English conventions. For example, the word code must be considered to have two syllables because the o and the e are not consecutive, even though in English the e is silent and so code actually has only one syllable.)
The input contains one or more lines, each of which contains a single haiku. A haiku contains at least three words, and words are separated by either a single space or a slash (/). Slashes also separate the three lines of a haiku, so each haiku contains exactly two slashes. (The three lines of the haiku are contained within one physical line of the file.) A haiku contains only lowercase letters (a-z), forward slashes (/), and spaces, and is no more than 200 characters long (not counting the end-of-line characters).
Each haiku is guaranteed to contain three lines, and each line contains at least one word.
The haiku e/o/i signals the end of the input.
For each haiku, output a single line: 1 if the first line has the wrong number of syllables, 2 if the second line has the wrong number of syllables, 3 if the third line has the wrong number of syllables, or Y if all three lines have the correct number of syllables. If the haiku is not correct, output the number of the first line that has the wrong number of syllables.