#include <bits/stdc++.h>
using namespace std;
char buf[1005];
int main() {
  int N;
  scanf("%d", &N);
  scanf("%s", buf + 1);
  buf[0] = 'L';
  buf[N] = 'R';
  int result[N + 5];
  for (int i = 0; i < (N + 5); i++) result[i] = -1;
  bool flag = false;
  int left = -1;
  for (int i = 0; i < (N + 1); i++) {
    if (buf[i] == '=')
      continue;
    else if (buf[i] == 'L') {
      flag = true;
      left = i + 1;
    } else if (buf[i] == 'R') {
      if (flag)
        for (int j = left; j <= i; j++) result[j] = 1;
      flag = false;
    }
  }
  for (int i = 1; i <= N; i++) {
    if (result[i] == 1) {
      int j = i + 1;
      while (j <= N && buf[j - 1] != 'L') {
        if (buf[j - 1] == '=')
          result[j] = result[j - 1];
        else
          result[j] = result[j - 1] + 1;
        j++;
      }
    }
  }
  for (int i = N; i >= 1; i--) {
    if (result[i] == 1) {
      int j = i - 1;
      while (j >= 1 && buf[j] != 'R') {
        if (buf[j] == '=')
          result[j] = result[j + 1];
        else
          result[j] = max(result[j], result[j + 1] + 1);
        j--;
      }
    }
  }
  for (int i = 1; i <= N; i++) printf("%d ", result[i]);
  printf("\n");
}
