#include <bits/stdc++.h>
using namespace std;
int n;
char c[1010];
int main() {
  cin >> n >> c;
  for (int i = 0; i < n; i++) {
    int l = i - 1, r = i, L = 1, R = 1;
    while (l >= 0 && c[l] != 'L') L += c[l--] == 'R';
    while (r <= n - 2 && c[r] != 'R') R += c[r++] == 'L';
    cout << max(L, R) << " ";
  }
}
