#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long int n;
  cin >> n;
  string s;
  cin >> s;
  for (int i = 0; i < n; i++) {
    long long int ml = 0, mr = 0, j;
    j = i;
    while (j < n - 1 && s[j] != 'R') {
      s[j] == 'L' ? mr++ : mr += 0;
      j++;
    }
    j = i - 1;
    while (j > -1 && s[j] != 'L') {
      s[j] == 'R' ? ml++ : ml += 0;
      j--;
    }
    cout << 1 + max(ml, mr) << " ";
  }
  cout << "\n";
  return 0;
}
