public static void main ( String [ ] args ) {
  String s = sc . next ( ) ;
  int [ ] count = new int [ 6 ] ;
  for ( int i = 0 ;
  i < s . length ( ) ;
  i ++ ) {
    count [ s . charAt ( i ) - 'A' ] ++ ;
  }
  System . out . println ( count [ 0 ] + " " + count [ 1 ] + " " + count [ 2 ] + " " + count [ 3 ] + " " + count [ 4 ] + " " + count [ 5 ] ) ;
}

public static void main ( String [ ] args ) { String s = sc . next ( ) ; int [ ] count = new int [ 6 ] ; for ( int i = 0 ; i < s . length ( ) ; i ++ ) { count [ s . charAt ( i ) - ' A ' ] ++ ; } System . out . println ( count [ 0 ] + " ▁ " + count [ 1 ] + " ▁ " + count [ 2 ] + " ▁ " + count [ 3 ] + " ▁ " + count [ 4 ] + " ▁ " + count [ 5 ] ) ; }
(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 (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: (array_type element: (integral_type) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (array_creation_expression type: (integral_type) dimensions: (dimensions_expr (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: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))) update: (update_expression (identifier)) body: (block (expression_statement (update_expression (array_access array: (identifier) index: (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))) right: (character_literal))))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (array_access array: (identifier) index: (decimal_integer_literal)) right: (string_literal)) right: (array_access array: (identifier) index: (decimal_integer_literal))) right: (string_literal)) right: (array_access array: (identifier) index: (decimal_integer_literal))) right: (string_literal)) right: (array_access array: (identifier) index: (decimal_integer_literal))) right: (string_literal)) right: (array_access array: (identifier) index: (decimal_integer_literal))) right: (string_literal)) right: (array_access array: (identifier) index: (decimal_integer_literal))))))))