#include <bits/stdc++.h>
using namespace std;
const int INF = 100000000;
const double EPS = 1e-8;
int main() {
  for (int n; ~scanf("%d", &n);) {
    vector<int> v(n, 1);
    string str;
    cin >> str;
    while (1) {
      bool f = 0;
      for (int i = 0; i < n - 1; ++i) {
        switch (str[i]) {
          case 61:
            if (v[i] > v[i + 1]) v[i + 1] = v[i], f++;
            if (v[i] < v[i + 1]) v[i] = v[i + 1], f++;
            break;
          case 76:
            if (v[i] < v[i + 1] + 1) v[i] = v[i + 1] + 1, f++;
            break;
          case 82:
            if (v[i + 1] < v[i] + 1) v[i + 1] = v[i] + 1, f++;
            break;
        }
      }
      if (!f) break;
    }
    for (int i = 0; i < (int)((v).size()); ++i) printf("%d\n", v[i]);
  }
  return 0;
}
