#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n;
  string s;
  cin >> n >> s;
  for (int i = 0; i < n; i++) {
    int l = i - 1, r = i, ll = 1, rr = 1;
    while (s[l] != 'L' && l >= 0) ll += (s[l] == 'R'), --l;
    while (s[r] != 'R' && r < n) rr += (s[r] == 'L'), ++r;
    cout << (ll > rr ? ll : rr) << " ";
  }
  return 0;
}
