#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string s;
  cin >> s;
  vector<int> arr(s.length() + 1);
  arr[0] = 1;
  for (int i = 0; i < s.length(); i++) {
    if (s[i] == 'R')
      arr[i + 1] = arr[i] + 1;
    else if (s[i] == '=')
      arr[i + 1] = arr[i];
    else {
      arr[i + 1] = 1;
      for (int j = i; j >= 0; j--) {
        if (s[j] == '=')
          arr[j] = arr[j + 1];
        else if (s[j] == 'L') {
          if (arr[j] <= arr[j + 1]) arr[j] = arr[j + 1] + 1;
        } else {
          if (arr[j] >= arr[j + 1]) arr[j] = arr[j + 1] - 1;
        }
      }
    }
  }
  for (int i = 0; i < arr.size(); i++) {
    cout << arr[i] << " ";
  }
  cout << endl;
  return 0;
}
