#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, temp = "";
  long long int n, l;
  cin >> n >> s;
  long long int a[n + 1];
  for (long long int i = 0; i < n; i++) a[i] = 1;
  for (long long int i = 0; i < n - 1; i++) {
    if (s[i] == 'R')
      a[i + 1] = a[i] + 1;
    else if (s[i] == '=')
      a[i + 1] = a[i];
  }
  for (long long int i = n - 2; i >= 0; i--) {
    if (s[i] == 'L')
      a[i] = max(a[i], a[i + 1] + 1);
    else if (s[i] == '=')
      a[i] = a[i + 1] = max(a[i], a[i + 1]);
  }
  for (long long int i = 0; i < n; i++) cout << a[i] << " ";
}
