1. 


import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;

/**
* Angewandte Mathematik SS09
* ACM Problem 576 - Haiku Review
*
* @author M. Stadler
* @author J. M�ller
* @version 1.0
*
* Status : Accepted
* Runtime: 0.088
*/



public class Main {

/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
boolean lastsyll = false;
char[] syll = {'a', 'e', 'i', 'o', 'u', 'y'};
BufferedReader foo = new BufferedReader(new InputStreamReader(System.in));
String input = "Y";
try {
while ((input = foo.readLine()) != null) {
if (input.equals("e/o/i"))
System.exit(0);
int line = 1;
StringTokenizer tok = new StringTokenizer(input, "/");

while (tok.hasMoreTokens()) {
int count = 0;
String tmp2 = tok.nextToken();
boolean tmplastsyll = false;
char[] tmpchar = tmp2.toCharArray();
for (char i: tmpchar) {
lastsyll = tmplastsyll;
for (char k: syll) {
if (i == k) {
if (! lastsyll) {
count++;
}
tmplastsyll = true;
break;
} else {
tmplastsyll = false;
}
}
}

if (line == 1)
if (count != 5) {
System.out.println(1);
line++;
break;
}

if (line == 2)
if (count != 7) {
System.out.println(2);
line++;
break;
}

if (line == 3)
if (count != 5) {
System.out.println(3);
line++;
break;
} else {
System.out.println("Y");
}
line++;
}

}
} catch (IOException e) {
System.out.println(e.getMessage());
}


}

}