#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  int n;
  cin >> n;
  vector<int> v(n, 1), v2(n, 1);
  cin >> s;
  for (int i = 1; i < n; i++) {
    int j = i - 1;
    if (s[j] == 'L') {
      v[i] = 1;
    } else if (s[j] == 'R') {
      v[i] = v[i - 1] + 1;
    } else
      v[i] = v[i - 1];
  }
  for (int i = n - 2; i >= 0; i--) {
    if (s[i] == 'L') {
      v2[i] = v2[i + 1] + 1;
    } else if (s[i] == 'R') {
      v2[i] = 1;
    } else
      v2[i] = v2[i + 1];
  }
  for (int i = 0; i < n; i++) printf("%d ", max(v[i], v2[i]));
  puts("");
  return 0;
}
