#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  string moves;
  cin >> n;
  cin >> moves;
  int man[n];
  for (short temp = 0; temp < n; temp++) {
    man[temp] = 1;
  }
  for (short temp2 = 0; temp2 < n; temp2++) {
    for (short temp = 0; temp < n; temp++) {
      if (moves[temp] == 'L' && man[temp] <= man[temp + 1]) {
        man[temp] = man[temp + 1] + 1;
      }
      if (moves[temp] == 'R' && man[temp + 1] <= man[temp]) {
        man[temp + 1] = man[temp] + 1;
      }
      if (moves[temp] == '=') {
        if (man[temp + 1] > man[temp]) {
          man[temp] = man[temp + 1];
        } else {
          man[temp + 1] = man[temp];
        }
      }
    }
  }
  for (short temp = 0; temp < n; temp++) {
    cout << man[temp] << " ";
  }
  return 0;
}
