#include <bits/stdc++.h>
using namespace std;
int ret[1001];
int main() {
  int N;
  scanf("%d\n", &N);
  char s[1000];
  scanf("%s", s);
  fill(ret, ret + N, 1);
  for (int i = 0; i < N; i++) {
    int t = 1;
    for (int j = i; j < N; j++)
      if (s[j] == 'R')
        break;
      else if (s[j] == 'L')
        t++;
    ret[i] = max(ret[i], t);
    t = 1;
    for (int j = i - 1; j >= 0; j--)
      if (s[j] == 'L')
        break;
      else if (s[j] == 'R')
        t++;
    ret[i] = max(ret[i], t);
  }
  printf("%d", ret[0]);
  for (int i = 1; i < N; i++) printf(" %d", ret[i]);
  printf("\n");
}
