#include <bits/stdc++.h>
using namespace std;
int dx4[4] = {0, -1, 0, 1};
int dy4[4] = {1, 0, -1, 0};
int dx8[8] = {-1, -1, -1, 0, 1, 1, 1, 0};
int dy8[8] = {-1, 0, 1, 1, 1, 0, -1, -1};
int Power(int base, long long int exp) {
  int ans = 1;
  while (exp > 0) {
    if (exp & 1) ans = (1LL * ans * base) % 1000000007;
    exp = exp >> 1;
    base = (1LL * base * base) % 1000000007;
  }
  return ans;
}
vector<vector<int> > g;
vector<vector<long long int> > w;
vector<vector<int> > e;
void input() {
  int n;
  cin >> n;
  string s;
  cin >> s;
  int i = 0;
  vector<int> ans;
  ans.push_back(1);
  int pre = 1;
  while (i < n - 1) {
    if (s[i] == '=')
      ans.push_back(pre);
    else if (s[i] == 'R')
      ans.push_back(pre + 1), pre++;
    else {
      int j = i;
      while (j < n - 1 && s[j] == 'L') j++;
      int cnt = j - i;
      j = i;
      while (j < n - 1 && s[j] == 'L') ans.push_back(cnt), j++, cnt--;
      i = j - 1;
      pre = 1;
    }
    i++;
  }
  for (int i = n - 1 - 1; i >= 0; i -= 1) {
    if (s[i] == 'L')
      ans[i] = max(ans[i], ans[i + 1] + 1);
    else if (s[i] == '=')
      ans[i] = ans[i + 1];
  }
  for (int i = 0; i < n; i += 1) cout << ans[i] << ' ';
  cout << '\n';
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(NULL);
  int q = 1;
  while (q--) input();
}
