#include <bits/stdc++.h>
using namespace std;
int ans[4000], n;
string s;
int main() {
  cin >> n;
  cin >> s;
  for (int i = 1; i <= n; i++) ans[i] = 1;
  for (int i = 0; i < n - 1; i++) {
    if (s[i] == '=') {
      ans[i + 2] = ans[i + 1];
    }
    if (s[i] == 'R') ans[i + 2] = ans[i + 1] + 1;
    if (s[i] == 'L') {
      ans[i + 2] = 1;
      int j = i;
      while (j >= 0) {
        if (s[j] == 'L' && ans[j + 1] <= ans[j + 2])
          ans[j + 1] = ans[j + 2] + 1;
        if (s[j] == '=' && ans[j + 1] < ans[j + 2]) ans[j + 1] = ans[j + 2];
        j--;
      }
    }
  }
  for (int i = 1; i <= n; i++) cout << ans[i] << " ";
}
