#include <bits/stdc++.h>
using namespace std;
const int MAXN = 3e5 + 20, MOD = 1e9 + 7;
int ans[MAXN];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  string s;
  cin >> s;
  for (int i = 0; i < n; i++) ans[i] = 1;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == 'R')
      ans[i + 1] = ans[i] + 1;
    else if (s[i] == '=')
      ans[i + 1] = ans[i];
  }
  for (int i = s.size() - 1; i >= 0; i--) {
    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++) cout << ans[i] << " ";
}
