#include <bits/stdc++.h>
using namespace std;
template <typename T>
inline T sqr(const T &a) {
  return a * a;
}
template <typename T>
inline int nread(vector<T> &a) {
  int n;
  cin >> n;
  a.clear();
  a.resize(n);
  for (int i = 0; i < n; i++) cin >> a[i];
  return n;
}
template <typename T>
inline void nwread(int n, vector<T> &a) {
  a.clear();
  a.resize(n);
  for (int i = 0; i < n; i++) cin >> a[i];
}
int main() {
  int n;
  cin >> n;
  string s;
  cin >> s;
  vector<int> a(n, 1);
  for (int i = 0; i < 10000; i++) {
    for (int i = 1; i < n; i++) {
      if (s[i - 1] == 'R' && a[i - 1] >= a[i]) a[i] = a[i - 1] + 1;
      if (s[i - 1] == '=' && a[i - 1] > a[i]) a[i] = a[i - 1];
    }
    reverse(a.begin(), a.end());
    reverse(s.begin(), s.end());
    for (int i = 0; i < s.size(); i++)
      if (s[i] == 'L')
        s[i] = 'R';
      else if (s[i] == 'R')
        s[i] = 'L';
  }
  for (int i = 0; i < n; i++) {
    cout << a[i] << ' ';
  }
}
