import java.util.Scanner; public class Main{ public static void main(String[] args) { String s = new Scanner(System.in).nextLine(); //s:字符串的长度 int i, n = s.length(); //循环每一个字符 for (i = 0; i < n; i++) { if (s.charAt(i) == 'a' || s.charAt(i) == 'e' || s.charAt(i) == 'i' || s.charAt(i) == 'o' || s.charAt(i) == 'u') { System.out.print(i + 1); return; } } System.out.print(0); } } /************************************************************** Problem: 1844 User: admin Language: Java Result: Accepted Time:1753 ms Memory:40240 kb ****************************************************************/