#include <bits/stdc++.h>
using namespace std;
namespace mainns {
template <typename T>
void relaxMax(T& relaxWhat, const T& relaxBy) {
  relaxWhat = max(relaxWhat, relaxBy);
}
template <typename T>
void relaxMin(T& relaxWhat, const T& relaxBy) {
  relaxWhat = min(relaxWhat, relaxBy);
}
class Solver067A {
 public:
  void run();
};
void Solver067A::run() {
  int n;
  cin >> n;
  string s;
  cin >> s;
  vector<int> minAllowed(n);
  minAllowed[n - 1] = 1;
  for (int i = n - 2; i >= 0; --i) {
    if (s[i] == 'R')
      minAllowed[i] = 1;
    else if (s[i] == '=')
      minAllowed[i] = minAllowed[i + 1];
    else
      minAllowed[i] = minAllowed[i + 1] + 1;
  }
  vector<int> ans = {minAllowed[0]};
  for (int i = 1; i < n; ++i) {
    ans.push_back(minAllowed[i]);
    if (s[i - 1] == 'R')
      relaxMax(ans.back(), ans[i - 1] + 1);
    else if (s[i - 1] == '=')
      relaxMax(ans.back(), ans[i - 1]);
  }
  for (auto elt : ans) cout << elt << " ";
}
}  // namespace mainns
using CurrentSolver = mainns::Solver067A;
int main() {
  ios::sync_with_stdio(false);
  CurrentSolver().run();
  return 0;
}
