#include <bits/stdc++.h>
using namespace std;
int main(int argc, char *argv[]) {
  int n, ans[1000], i, j;
  char s[1000];
  cin >> n;
  cin >> s;
  ans[0] = 1;
  for (i = 1; i < n; i++) {
    if (s[i - 1] == 'L') {
      ans[i] = 1;
      j = i;
      while ((ans[j] >= ans[j - 1] && s[j - 1] == 'L') ||
             (ans[j] != ans[j - 1] && s[j - 1] == '=')) {
        if (s[j - 1] == 'L') {
          ans[j - 1] = ans[j] + 1;
        } else {
          ans[j - 1] = ans[j];
        }
        j--;
        if (j == 0) break;
      }
    } else if (s[i - 1] == 'R') {
      ans[i] = ans[i - 1] + 1;
    } else {
      ans[i] = ans[i - 1];
    }
  }
  for (i = 0; i < n; i++) cout << ans[i] << ((i == n - 1) ? "\n" : " ");
  return EXIT_SUCCESS;
}
