public static void main ( String [ ] args ) throws FileNotFoundException {
  in = new Scanner ( new InputStreamReader ( new FileInputStream ( "a_in.txt" ) ) ) ;
  out = new PrintStream ( new BufferedOutputStream ( new FileOutputStream ( "a_out.txt" ) ) ) ;
  int n = in . nextInt ( ) ;
  in . nextLine ( ) ;
  int t = 1 ;
  while ( n -- > 0 ) new A ( ) . solveProblem ( t ++ ) ;
  out . close ( ) ;
}

public static void main ( String [ ] args ) throws FileNotFoundException { in = new Scanner ( new InputStreamReader ( new FileInputStream ( " a _ in . txt " ) ) ) ; out = new PrintStream ( new BufferedOutputStream ( new FileOutputStream ( " a _ out . txt " ) ) ) ; int n = in . nextInt ( ) ; in . nextLine ( ) ; int t = 1 ; while ( n -- > 0 ) new A ( ) . solveProblem ( t ++ ) ; out . 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 (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 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))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (while_statement condition: (parenthesized_expression (binary_expression left: (update_expression (identifier)) right: (decimal_integer_literal))) body: (expression_statement (method_invocation object: (object_creation_expression type: (type_identifier) arguments: (argument_list)) name: (identifier) arguments: (argument_list (update_expression (identifier)))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))))