static void init_io ( String filename ) throws Exception {
  if ( filename . equals ( "" ) ) {
    in = new IO ( System . in ) ;
    out = new PrintWriter ( new BufferedWriter ( new OutputStreamWriter ( System . out ) ) , true ) ;
  }
  else {
    in = new IO ( new FileInputStream ( filename + ".in" ) ) ;
    out = new PrintWriter ( new BufferedWriter ( new FileWriter ( filename + ".out" ) ) , true ) ;
  }
}

static void init_io ( String filename ) throws Exception { if ( filename . equals ( " " ) ) { in = new IO ( System . in ) ; out = new PrintWriter ( new BufferedWriter ( new OutputStreamWriter ( System . out ) ) , true ) ; } else { in = new IO ( new FileInputStream ( filename + " . in " ) ) ; out = new PrintWriter ( new BufferedWriter ( new FileWriter ( filename + " . out " ) ) , true ) ; } }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier))) (throws (type_identifier)) body: (block (if_statement condition: (parenthesized_expression (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal)))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (object_creation_expression type: (type_identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier)))))) (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 (field_access object: (identifier) field: (identifier)))))) (true)))))) alternative: (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 (binary_expression left: (identifier) right: (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 (binary_expression left: (identifier) right: (string_literal)))))) (true)))))))))