public static void taskSolver ( ) {
  char ch [ ] = sc . next ( ) . toCharArray ( ) ;
  int arr [ ] = new int [ ch . length ] ;
  for ( int i = 0 ;
  i < ch . length ;
  i ++ ) {
    arr [ i ] = ch [ i ] - 'a' ;
  }
  Arrays . sort ( arr ) ;
  int flag = 1 ;
  for ( int i = 1 ;
  i < arr . length ;
  i ++ ) {
    if ( arr [ i ] != arr [ i - 1 ] + 1 ) {
      flag = 0 ;
      break ;
    }
  }
  if ( flag == 0 ) out . println ( "No" ) ;
  else out . println ( "Yes" ) ;
}

public static void taskSolver ( ) { char ch [ ] = sc . next ( ) . toCharArray ( ) ; int arr [ ] = new int [ ch . length ] ; for ( int i = 0 ; i < ch . length ; i ++ ) { arr [ i ] = ch [ i ] - ' a ' ; } Arrays . sort ( arr ) ; int flag = 1 ; for ( int i = 1 ; i < arr . length ; i ++ ) { if ( arr [ i ] != arr [ i - 1 ] + 1 ) { flag = 0 ; break ; } } if ( flag == 0 ) out . println ( " No " ) ; else out . println ( " Yes " ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) dimensions: (dimensions) 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) dimensions: (dimensions) value: (array_creation_expression type: (integral_type) dimensions: (dimensions_expr (field_access object: (identifier) field: (identifier)))))) (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: (identifier)) right: (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (character_literal)))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (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 (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (binary_expression left: (array_access array: (identifier) index: (binary_expression left: (identifier) right: (decimal_integer_literal))) right: (decimal_integer_literal)))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (decimal_integer_literal))) (break_statement))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal)))) alternative: (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal)))))))