#include <bits/stdc++.h>
using namespace std;
int val[1005];
int main() {
  int n, i, loop;
  cin >> n;
  string s;
  cin >> s;
  loop = n;
  for (i = 0; i < n; i++) {
    val[i] = 1;
  }
  while (loop--) {
    for (i = 0; i < s.size(); i++) {
      if (s[i] == 'L') {
        if (val[i] <= val[i + 1]) val[i]++;
      } else if (s[i] == 'R') {
        if (val[i + 1] <= val[i]) val[i + 1]++;
      } else {
        val[i] = max(val[i], val[i + 1]);
        val[i + 1] = val[i];
      }
    }
  }
  for (i = 0; i < n; i++) cout << val[i] << " ";
  return 0;
}
