public static void main ( String args [ ] ) throws IOException {
  BufferedReader reader = new BufferedReader ( new InputStreamReader ( System . in ) ) ;
  PrintWriter pw = new PrintWriter ( System . out ) ;
  int n = Integer . parseInt ( reader . readLine ( ) ) ;
  String s = reader . readLine ( ) ;
  int arr [ ] = new int [ n ] , arr_1 [ ] = new int [ n ] , arr_2 [ ] = new int [ n ] ;
  arr_1 [ 0 ] = 1 ;
  arr_2 [ n - 1 ] = 1 ;
  for ( int i = 1 ;
  i < n ;
  i ++ ) {
    if ( s . charAt ( i - 1 ) == 'R' ) arr_1 [ i ] = arr_1 [ i - 1 ] + 1 ;
    else if ( s . charAt ( i - 1 ) == '=' ) arr_1 [ i ] = arr_1 [ i - 1 ] ;
    else arr_1 [ i ] = 1 ;
  }
  for ( int i = n - 2 ;
  i >= 0 ;
  i -- ) {
    if ( s . charAt ( i ) == 'L' ) arr_2 [ i ] = arr_2 [ i + 1 ] + 1 ;
    else if ( s . charAt ( i ) == '=' ) arr_2 [ i ] = arr_2 [ i + 1 ] ;
    else arr_2 [ i ] = 1 ;
  }
  for ( int i = 0 ;
  i < n ;
  i ++ ) {
    arr [ i ] = Math . max ( arr_1 [ i ] , arr_2 [ i ] ) ;
    pw . print ( + arr [ i ] + " " ) ;
  }
  pw . flush ( ) ;
  pw . close ( ) ;
  ;
}

public static void main ( String args [ ] ) throws IOException { BufferedReader reader = new BufferedReader ( new InputStreamReader ( System . in ) ) ; PrintWriter pw = new PrintWriter ( System . out ) ; int n = Integer . parseInt ( reader . readLine ( ) ) ; String s = reader . readLine ( ) ; int arr [ ] = new int [ n ] , arr_1 [ ] = new int [ n ] , arr_2 [ ] = new int [ n ] ; arr_1 [ 0 ] = 1 ; arr_2 [ n - 1 ] = 1 ; for ( int i = 1 ; i < n ; i ++ ) { if ( s . charAt ( i - 1 ) == ' R ' ) arr_1 [ i ] = arr_1 [ i - 1 ] + 1 ; else if ( s . charAt ( i - 1 ) == ' = ' ) arr_1 [ i ] = arr_1 [ i - 1 ] ; else arr_1 [ i ] = 1 ; } for ( int i = n - 2 ; i >= 0 ; i -- ) { if ( s . charAt ( i ) == ' L ' ) arr_2 [ i ] = arr_2 [ i + 1 ] + 1 ; else if ( s . charAt ( i ) == ' = ' ) arr_2 [ i ] = arr_2 [ i + 1 ] ; else arr_2 [ i ] = 1 ; } for ( int i = 0 ; i < n ; i ++ ) { arr [ i ] = Math . max ( arr_1 [ i ] , arr_2 [ i ] ) ; pw . print ( + arr [ i ] + " ▁ " ) ; } pw . flush ( ) ; pw . close ( ) ; ; }
(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)))))))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier)))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))))) (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) dimensions: (dimensions) value: (array_creation_expression type: (integral_type) dimensions: (dimensions_expr (identifier)))) declarator: (variable_declarator name: (identifier) dimensions: (dimensions) value: (array_creation_expression type: (integral_type) dimensions: (dimensions_expr (identifier)))) declarator: (variable_declarator name: (identifier) dimensions: (dimensions) value: (array_creation_expression type: (integral_type) dimensions: (dimensions_expr (identifier))))) (expression_statement (assignment_expression left: (array_access array: (identifier) index: (decimal_integer_literal)) right: (decimal_integer_literal))) (expression_statement (assignment_expression left: (array_access array: (identifier) index: (binary_expression left: (identifier) right: (decimal_integer_literal))) right: (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: (identifier)) update: (update_expression (identifier)) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (decimal_integer_literal)))) right: (character_literal))) consequence: (expression_statement (assignment_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)))) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (decimal_integer_literal)))) right: (character_literal))) consequence: (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (array_access array: (identifier) index: (binary_expression left: (identifier) right: (decimal_integer_literal))))) alternative: (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (decimal_integer_literal))))))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (identifier) right: (decimal_integer_literal)))) condition: (binary_expression left: (identifier) right: (decimal_integer_literal)) update: (update_expression (identifier)) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))) right: (character_literal))) consequence: (expression_statement (assignment_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)))) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))) right: (character_literal))) consequence: (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (array_access array: (identifier) index: (binary_expression left: (identifier) right: (decimal_integer_literal))))) alternative: (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (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: (identifier)) update: (update_expression (identifier)) body: (block (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (array_access array: (identifier) index: (identifier)) (array_access array: (identifier) index: (identifier)))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (unary_expression operand: (array_access array: (identifier) index: (identifier))) right: (string_literal))))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))))