public static void main ( String [ ] args ) throws IOException {
  try ( BufferedReader reader = new BufferedReader ( new InputStreamReader ( System . in ) ) ) {
    String s = reader . readLine ( ) ;
    int prelen = s . length ( ) ;
    boolean flg = true ;
    while ( 0 < s . length ( ) ) {
      s = s . replaceAll ( "ch$" , "" ) ;
      s = s . replaceAll ( "o$" , "" ) ;
      s = s . replaceAll ( "k$" , "" ) ;
      s = s . replaceAll ( "u$" , "" ) ;
      if ( prelen == s . length ( ) ) {
        flg = false ;
        break ;
      }
      prelen = s . length ( ) ;
    }
    System . out . println ( flg ? "YES" : "NO" ) ;
  }
}

public static void main ( String [ ] args ) throws IOException { try ( BufferedReader reader = new BufferedReader ( new InputStreamReader ( System . in ) ) ) { String s = reader . readLine ( ) ; int prelen = s . length ( ) ; boolean flg = true ; while ( 0 < s . length ( ) ) { s = s . replaceAll ( " ch $ " , " " ) ; s = s . replaceAll ( " o $ " , " " ) ; s = s . replaceAll ( " k $ " , " " ) ; s = s . replaceAll ( " u $ " , " " ) ; if ( prelen == s . length ( ) ) { flg = false ; break ; } prelen = s . length ( ) ; } System . out . println ( flg ? " YES " : " NO " ) ; } }
(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 (try_with_resources_statement resources: (resource_specification (resource type: (type_identifier) name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (object_creation_expression type: (type_identifier) arguments: (argument_list (field_access object: (identifier) field: (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: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (boolean_type) declarator: (variable_declarator name: (identifier) value: (true))) (while_statement condition: (parenthesized_expression (binary_expression left: (decimal_integer_literal) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) body: (block (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal) (string_literal))))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal) (string_literal))))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal) (string_literal))))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal) (string_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (false))) (break_statement))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (ternary_expression condition: (identifier) consequence: (string_literal) alternative: (string_literal)))))))))