public static void main ( String [ ] args ) throws IOException {
  br = new BufferedReader ( new FileReader ( "a.in" ) ) ;
  pw = new PrintWriter ( new BufferedWriter ( new FileWriter ( "a.out" ) ) ) ;
  final int MAX_CASES = readInt ( ) ;
  String vowel = "aeiou" ;
  for ( int casenum = 1 ;
  casenum <= MAX_CASES ;
  casenum ++ ) {
    pw . printf ( "Case #%d: " , casenum ) ;
    String str = nextToken ( ) ;
    int count = readInt ( ) ;
    long ret = 0 ;
    int curr = 0 ;
    int lastStart = - 1 ;
    for ( int i = 0 ;
    i < str . length ( ) ;
    i ++ ) {
      if ( vowel . indexOf ( str . charAt ( i ) + "" ) == - 1 ) {
        curr ++ ;
      }
      else {
        curr = 0 ;
      }
      if ( curr >= count ) {
        int begin = i - count + 1 ;
        int goAfter = i ;
        ret += ( begin - lastStart ) * 1L * ( str . length ( ) - goAfter ) ;
        lastStart = begin ;
      }
    }
    pw . println ( ret ) ;
  }
  pw . close ( ) ;
}

public static void main ( String [ ] args ) throws IOException { br = new BufferedReader ( new FileReader ( " a . in " ) ) ; pw = new PrintWriter ( new BufferedWriter ( new FileWriter ( " a . out " ) ) ) ; final int MAX_CASES = readInt ( ) ; String vowel = " aeiou " ; for ( int casenum = 1 ; casenum <= MAX_CASES ; casenum ++ ) { pw . printf ( " Case ▁ # % d : ▁ " , casenum ) ; String str = nextToken ( ) ; int count = readInt ( ) ; long ret = 0 ; int curr = 0 ; int lastStart = - 1 ; for ( int i = 0 ; i < str . length ( ) ; i ++ ) { if ( vowel . indexOf ( str . charAt ( i ) + " " ) == - 1 ) { curr ++ ; } else { curr = 0 ; } if ( curr >= count ) { int begin = i - count + 1 ; int goAfter = i ; ret += ( begin - lastStart ) * 1L * ( str . length ( ) - goAfter ) ; lastStart = begin ; } } pw . println ( ret ) ; } pw . close ( ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (type_identifier) dimensions: (dimensions)) name: (identifier))) (throws (type_identifier)) body: (block (expression_statement (assignment_expression left: (identifier) right: (object_creation_expression type: (type_identifier) arguments: (argument_list (object_creation_expression type: (type_identifier) arguments: (argument_list (string_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (object_creation_expression type: (type_identifier) arguments: (argument_list (object_creation_expression type: (type_identifier) arguments: (argument_list (object_creation_expression type: (type_identifier) arguments: (argument_list (string_literal))))))))) (local_variable_declaration (modifiers) type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (string_literal))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal) (identifier)))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (method_invocation name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (unary_expression operand: (decimal_integer_literal)))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))) update: (update_expression (identifier)) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))) right: (string_literal)))) right: (unary_expression operand: (decimal_integer_literal)))) consequence: (block (expression_statement (update_expression (identifier)))) alternative: (block (expression_statement (assignment_expression left: (identifier) right: (decimal_integer_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (decimal_integer_literal)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (decimal_integer_literal)) right: (parenthesized_expression (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))))