#include <bits/stdc++.h>
using namespace std;
char a[1005];
int g[1005];
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n - 1; ++i) {
    cin >> a[i];
  }
  for (int i = 0; i < n; ++i) {
    int l, r;
    l = r = 1;
    for (int j = i; j < n; ++j) {
      if (a[j] == 'R')
        break;
      else if (a[j] == 'L')
        l++;
    }
    for (int j = i - 1; j >= 0; --j) {
      if (a[j] == 'L')
        break;
      else if (a[j] == 'R')
        r++;
    }
    cout << max(l, r) << endl;
  }
  cout << endl;
}
