private static void solve ( ) {
  char [ ] s = in . nextLine ( ) . toCharArray ( ) ;
  int n = s . length ;
  if ( n < 4 ) {
    out . println ( "YES" ) ;
    out . println ( new String ( s ) ) ;
    return ;
  }
  int [ ] charCount = new int [ 26 ] ;
  for ( char c : s ) charCount [ c - 'a' ] ++ ;
  ;
}

private static void solve ( ) { char [ ] s = in . nextLine ( ) . toCharArray ( ) ; int n = s . length ; if ( n < 4 ) { out . println ( " YES " ) ; out . println ( new String ( s ) ) ; return ; } int [ ] charCount = new int [ 26 ] ; for ( char c : s ) charCount [ c - ' a ' ] ++ ; ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters) body: (block (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: (integral_type) declarator: (variable_declarator name: (identifier) value: (field_access object: (identifier) field: (identifier)))) (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 (object_creation_expression type: (type_identifier) arguments: (argument_list (identifier)))))) (return_statement))) (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))))) (enhanced_for_statement type: (integral_type) name: (identifier) value: (identifier) body: (expression_statement (update_expression (array_access array: (identifier) index: (binary_expression left: (identifier) right: (character_literal))))))))