public static void main ( String [ ] args ) {
  try {
    Scanner sc = new Scanner ( new FileInputStream ( new File ( filename ) ) ) ;
    int no_of_times = sc . nextInt ( ) ;
    for ( int i = 0 ;
    i < no_of_times ;
    ++ i ) {
      sc . nextInt ( ) ;
      char [ ] shylevelchars = sc . nextLine ( ) . toCharArray ( ) ;
      int [ ] shylevels = new int [ shylevelchars . length - 1 ] ;
      for ( int j = 1 ;
      j < shylevelchars . length ;
      ++ j ) {
        shylevels [ j - 1 ] = Integer . parseInt ( ( ( Character ) shylevelchars [ j ] ) . toString ( ) ) ;
      }
      FileOutputStream fos = new FileOutputStream ( output , true ) ;
      fos . write ( ( "Case #" + ( i + 1 ) + ": " + numOfFriends ( shylevels ) + "\n" ) . getBytes ( ) ) ;
      fos . close ( ) ;
    }
    sc . close ( ) ;
  }
  catch ( Exception e ) {
    e . printStackTrace ( ) ;
  }
}

public static void main ( String [ ] args ) { try { Scanner sc = new Scanner ( new FileInputStream ( new File ( filename ) ) ) ; int no_of_times = sc . nextInt ( ) ; for ( int i = 0 ; i < no_of_times ; ++ i ) { sc . nextInt ( ) ; char [ ] shylevelchars = sc . nextLine ( ) . toCharArray ( ) ; int [ ] shylevels = new int [ shylevelchars . length - 1 ] ; for ( int j = 1 ; j < shylevelchars . length ; ++ j ) { shylevels [ j - 1 ] = Integer . parseInt ( ( ( Character ) shylevelchars [ j ] ) . toString ( ) ) ; } FileOutputStream fos = new FileOutputStream ( output , true ) ; fos . write ( ( " Case ▁ # " + ( i + 1 ) + " : ▁ " + numOfFriends ( shylevels ) + " \n " ) . getBytes ( ) ) ; fos . close ( ) ; } sc . close ( ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (type_identifier) dimensions: (dimensions)) name: (identifier))) 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 (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)))) (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))) (local_variable_declaration type: (array_type element: (integral_type) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (array_type element: (integral_type) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (array_creation_expression type: (integral_type) dimensions: (dimensions_expr (binary_expression left: (field_access object: (identifier) field: (identifier)) right: (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: (field_access object: (identifier) field: (identifier))) update: (update_expression (identifier)) body: (block (expression_statement (assignment_expression left: (array_access array: (identifier) index: (binary_expression left: (identifier) right: (decimal_integer_literal))) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (parenthesized_expression (cast_expression type: (type_identifier) value: (array_access array: (identifier) index: (identifier)))) name: (identifier) arguments: (argument_list)))))))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (identifier) (true))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (parenthesized_expression (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (string_literal) right: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal)))) right: (string_literal)) right: (method_invocation name: (identifier) arguments: (argument_list (identifier)))) right: (string_literal))) 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))))))))