#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, ans[1000], temp, i, j;
  fill(ans, ans + 1000, 0);
  char s[1000];
  cin >> n;
  cin >> s;
  for (i = 0; i < n; i++) {
    ans[i] = 1;
    temp = 1;
    for (j = i; j < n; j++) {
      if (s[j] == 'R')
        break;
      else if (s[j] == 'L')
        temp++;
    }
    if (temp > ans[i]) ans[i] = temp;
    temp = 1;
    for (j = i - 1; j >= 0; j--) {
      if (s[j] == 'L')
        break;
      else if (s[j] == 'R')
        temp++;
    }
    if (temp > ans[i]) ans[i] = temp;
  }
  for (i = 0; i < n; i++) cout << ans[i] << " ";
  return 0;
}
