#include <bits/stdc++.h>
using namespace std;
const int dim = 1001;
int v[dim];
char s[dim];
int main() {
  int n, i, j;
  cin >> n;
  cin >> (s + 1);
  v[0] = 1;
  for (i = 1; i < n; ++i) {
    if (s[i] == 'R')
      v[i] = v[i - 1] + 1;
    else if (s[i] == '=')
      v[i] = v[i - 1];
    else {
      v[i] = 1;
      j = i;
      do {
        do {
          --j;
          if (v[j] <= v[j + 1]) v[j] = v[j + 1] + 1;
        } while (j > 0 && s[j] == 'L');
        while (j > 0 && s[j] == '=') {
          --j;
          v[j] = v[j + 1];
        }
      } while (j > 0 && s[j] != 'R');
    }
  }
  cout << v[0];
  for (i = 1; i < n; ++i) cout << ' ' << v[i];
  return 0;
}
