#include <bits/stdc++.h>
using namespace std;
inline int read() {
  int a = 0, f = 1;
  char ch = getchar();
  for (; !isdigit(ch); ch = getchar())
    if (ch == '-') f = -1;
  for (; isdigit(ch); ch = getchar()) a = (a << 3) + (a << 1) + ch - '0';
  return a * f;
}
const int N = 1e4 + 5;
int a[N], flag = 0;
char s[N];
signed main() {
  int n = read();
  char ch = getchar();
  for (; !isalpha(ch) && ch != '='; ch = getchar())
    ;
  s[0] = ch;
  for (int i = 1; i < n; s[i++] = getchar())
    ;
  for (int i = 0; i < n; i++) a[i] = 1;
  for (int k = 0; k < n; k++) {
    for (int i = 0; i < n - 1; i++) {
      if (s[i] == 'L' && a[i] <= a[i + 1])
        a[i] = a[i + 1] + 1;
      else if (s[i] == 'R' && a[i + 1] <= a[i])
        a[i + 1] = a[i] + 1;
      else if (s[i] == '=' && a[i] != a[i + 1]) {
        if (a[i] > a[i + 1])
          a[i + 1]++;
        else
          a[i]++;
      }
    }
  }
  for (int i = 0; i < n; i++) printf("%d ", a[i]);
  return 0;
}
