#include <bits/stdc++.h>
using namespace std;
const long long N = 1001;
long long ans[N];
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  long long n;
  cin >> n;
  string s;
  cin >> s;
  for (long long i = 0; i < n; ++i) ans[i] = 1;
  for (long long _ = 0; _ < N; ++_) {
    for (long long i = 0; i < n - 1; ++i) {
      if (s[i] == '=')
        ans[i] = ans[i + 1] = max(ans[i], ans[i + 1]);
      else if (s[i] == 'R')
        ans[i + 1] = max(ans[i + 1], ans[i] + 1);
      else if (s[i] == 'L')
        ans[i] = max(ans[i], ans[i + 1] + 1);
    }
  }
  for (long long i = 0; i < n; ++i) cout << ans[i] << ' ';
  cout << '\n';
}
