#include <bits/stdc++.h>
using namespace std;
const int MAX = 1005;
char ch[MAX];
int ans[MAX];
int main() {
  int n;
  scanf("%d%s", &n, ch);
  ans[0] = 1;
  for (int i = 1; i < n; i++) {
    if (ch[i - 1] == '=')
      ans[i] = ans[i - 1];
    else if (ch[i - 1] == 'L') {
      ans[i] = 1;
      for (int j = i - 1; j >= 0; j--) {
        if (ch[j] == 'L' && ans[j] <= ans[j + 1])
          ans[j] = ans[j + 1] + 1;
        else if (ch[j] == '=' && ans[j] != ans[j + 1])
          ans[j] = ans[j + 1];
        else
          break;
      }
    } else
      ans[i] = ans[i - 1] + 1;
  }
  for (int i = 0; i < n; i++) {
    if (i == 0)
      printf("%d", ans[i]);
    else
      printf(" %d", ans[i]);
  }
  printf("\n");
}
