#include <bits/stdc++.h>
using namespace std;
const int M = 1000 + 5;
int a[M];
int main() {
  int n;
  cin >> n;
  string s;
  cin >> s;
  for (int i = 0; i < n; i++) {
    int iL = i - 1;
    int numL = 1;
    while (iL >= 0 && s[iL] != 'L') {
      if (s[iL] == 'R') {
        numL++;
      }
      iL--;
    }
    int iR = i;
    int numR = 1;
    while (iR < s.length() && s[iR] != 'R') {
      if (s[iR] == 'L') {
        numR++;
      }
      iR++;
    }
    a[i] = (numR > numL ? numR : numL);
  }
  for (int i = 0; i < n; i++) {
    cout << a[i];
    if (i < n - 1) {
      cout << " ";
    }
  }
  return 0;
}
