public static void main ( String [ ] args ) throws Exception {
  String fname = "A_large" ;
  File file = new File ( fname + "_in.txt" ) ;
  Scanner scanner = new Scanner ( file ) ;
  FileWriter outFile = new FileWriter ( fname + "_out.txt" ) ;
  PrintWriter outp = new PrintWriter ( outFile ) ;
  int T = scanner . nextInt ( ) ;
  scanner . nextLine ( ) ;
  for ( int i = 1 ;
  i <= T ;
  i ++ ) {
    String s = scanner . nextLine ( ) ;
    String sin = s . split ( " " ) [ 0 ] ;
    int n = Integer . parseInt ( s . split ( " " ) [ 1 ] ) ;
    outp . printf ( "Case #%d: %d\n" , i , solve ( sin , n ) ) ;
  }
  outp . close ( ) ;
}

public static void main ( String [ ] args ) throws Exception { String fname = " A _ large " ; File file = new File ( fname + " _ in . txt " ) ; Scanner scanner = new Scanner ( file ) ; FileWriter outFile = new FileWriter ( fname + " _ out . txt " ) ; PrintWriter outp = new PrintWriter ( outFile ) ; int T = scanner . nextInt ( ) ; scanner . nextLine ( ) ; for ( int i = 1 ; i <= T ; i ++ ) { String s = scanner . nextLine ( ) ; String sin = s . split ( " ▁ " ) [ 0 ] ; int n = Integer . parseInt ( s . split ( " ▁ " ) [ 1 ] ) ; outp . printf ( " Case ▁ # % d : ▁ % d \n " , i , solve ( sin , n ) ) ; } outp . 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 (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (string_literal))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (binary_expression left: (identifier) right: (string_literal)))))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (identifier))))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (binary_expression left: (identifier) right: (string_literal)))))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (identifier))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))) (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 (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (array_access array: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal))) index: (decimal_integer_literal)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (array_access array: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal))) index: (decimal_integer_literal)))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal) (identifier) (method_invocation name: (identifier) arguments: (argument_list (identifier) (identifier)))))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))))