public static void main ( String args [ ] ) {
  try {
    BufferedReader reader = new BufferedReader ( new FileReader ( "src/C-large.in" ) ) ;
    BufferedWriter writer = new BufferedWriter ( new FileWriter ( "output" ) ) ;
    int n = Integer . parseInt ( reader . readLine ( ) ) ;
    int i ;
    for ( i = 0 ;
    i < n ;
    i ++ ) {
      String line = reader . readLine ( ) ;
      int result = solve ( line ) ;
      writer . write ( "Case #" + ( i + 1 ) + ": " ) ;
      if ( result < 1000 ) {
        writer . write ( "0" ) ;
      }
      if ( result < 100 ) {
        writer . write ( "0" ) ;
      }
      if ( result < 10 ) {
        writer . write ( "0" ) ;
      }
      writer . write ( result + "" ) ;
      writer . newLine ( ) ;
    }
    reader . close ( ) ;
    writer . close ( ) ;
  }
  catch ( Exception ex ) {
    ex . printStackTrace ( ) ;
  }
}

public static void main ( String args [ ] ) { try { BufferedReader reader = new BufferedReader ( new FileReader ( " src / C - large . in " ) ) ; BufferedWriter writer = new BufferedWriter ( new FileWriter ( " output " ) ) ; int n = Integer . parseInt ( reader . readLine ( ) ) ; int i ; for ( i = 0 ; i < n ; i ++ ) { String line = reader . readLine ( ) ; int result = solve ( line ) ; writer . write ( " Case ▁ # " + ( i + 1 ) + " : ▁ " ) ; if ( result < 1000 ) { writer . write ( "0" ) ; } if ( result < 100 ) { writer . write ( "0" ) ; } if ( result < 10 ) { writer . write ( "0" ) ; } writer . write ( result + " " ) ; writer . newLine ( ) ; } reader . close ( ) ; writer . close ( ) ; } catch ( Exception ex ) { ex . printStackTrace ( ) ; } }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier) dimensions: (dimensions))) body: (block (try_statement body: (block (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (object_creation_expression type: (type_identifier) arguments: (argument_list (string_literal))))))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (object_creation_expression type: (type_identifier) arguments: (argument_list (string_literal))))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier))) (for_statement init: (assignment_expression left: (identifier) right: (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: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation name: (identifier) arguments: (argument_list (identifier))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (binary_expression left: (string_literal) right: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal)))) right: (string_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal)))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (string_literal))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (catch_clause (catch_formal_parameter (catch_type (type_identifier)) name: (identifier)) body: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))))))))