public static void main ( String args [ ] ) throws Throwable {
  BufferedReader in = new BufferedReader ( new InputStreamReader ( System . in ) ) ;
  for ( String ln ;
  ( ln = in . readLine ( ) ) != null && ! ln . equals ( "" ) ;
  ) {
    StringTokenizer st = new StringTokenizer ( ln ) ;
    int N = parseInt ( st . nextToken ( ) ) , K = parseInt ( st . nextToken ( ) ) ;
    String [ ] result = new String [ N ] ;
    st = new StringTokenizer ( in . readLine ( ) ) ;
    for ( int i = 0 ;
    i < N - K + 1 ;
    i ++ ) {
      if ( st . nextToken ( ) . equals ( "YES" ) ) {
        for ( int j = i ;
        j < i + K ;
        j ++ ) if ( result [ j ] == null ) result [ j ] = getName ( j ) ;
      }
      else {
        if ( result [ i ] == null ) {
          result [ i ] = getName ( i ) ;
          result [ i + K - 1 ] = getName ( i ) ;
        }
        else result [ i + K - 1 ] = result [ i ] ;
      }
    }
    for ( int i = 0 ;
    i < N ;
    i ++ ) if ( result [ i ] == null ) result [ i ] = getName ( i ) ;
    System . out . println ( Stream . of ( result ) . collect ( Collectors . joining ( " " ) ) ) ;
  }
}

public static void main ( String args [ ] ) throws Throwable { BufferedReader in = new BufferedReader ( new InputStreamReader ( System . in ) ) ; for ( String ln ; ( ln = in . readLine ( ) ) != null && ! ln . equals ( " " ) ; ) { StringTokenizer st = new StringTokenizer ( ln ) ; int N = parseInt ( st . nextToken ( ) ) , K = parseInt ( st . nextToken ( ) ) ; String [ ] result = new String [ N ] ; st = new StringTokenizer ( in . readLine ( ) ) ; for ( int i = 0 ; i < N - K + 1 ; i ++ ) { if ( st . nextToken ( ) . equals ( " YES " ) ) { for ( int j = i ; j < i + K ; j ++ ) if ( result [ j ] == null ) result [ j ] = getName ( j ) ; } else { if ( result [ i ] == null ) { result [ i ] = getName ( i ) ; result [ i + K - 1 ] = getName ( i ) ; } else result [ i + K - 1 ] = result [ i ] ; } } for ( int i = 0 ; i < N ; i ++ ) if ( result [ i ] == null ) result [ i ] = getName ( i ) ; System . out . println ( Stream . of ( result ) . collect ( Collectors . joining ( " ▁ " ) ) ) ; } }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier) dimensions: (dimensions))) (throws (type_identifier)) 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 (field_access object: (identifier) field: (identifier)))))))) (for_statement init: (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier))) condition: (binary_expression left: (binary_expression left: (parenthesized_expression (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) right: (null_literal)) right: (unary_expression operand: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal))))) body: (block (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (identifier))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))))) declarator: (variable_declarator name: (identifier) value: (method_invocation name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))))) (local_variable_declaration type: (array_type element: (type_identifier) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (array_creation_expression type: (type_identifier) dimensions: (dimensions_expr (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (object_creation_expression type: (type_identifier) arguments: (argument_list (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: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (decimal_integer_literal))) update: (update_expression (identifier)) body: (block (if_statement condition: (parenthesized_expression (method_invocation object: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) name: (identifier) arguments: (argument_list (string_literal)))) consequence: (block (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (identifier))) condition: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))) update: (update_expression (identifier)) body: (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (null_literal))) consequence: (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (method_invocation name: (identifier) arguments: (argument_list (identifier)))))))) alternative: (block (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (null_literal))) consequence: (block (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (method_invocation name: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (array_access array: (identifier) index: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (decimal_integer_literal))) right: (method_invocation name: (identifier) arguments: (argument_list (identifier)))))) alternative: (expression_statement (assignment_expression left: (array_access array: (identifier) index: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (decimal_integer_literal))) right: (array_access array: (identifier) index: (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: (identifier)) update: (update_expression (identifier)) body: (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (null_literal))) consequence: (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (method_invocation name: (identifier) arguments: (argument_list (identifier))))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (method_invocation object: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal))))))))))))