#include <bits/stdc++.h>
char C[1005];
int n, M[1005], MM[1005];
int main() {
  scanf("%d", &n);
  scanf("%s", C);
  M[n - 1] = 1;
  for (int i = n - 2; i >= 0; i--) {
    if (C[i] == 'L') M[i] = M[i + 1] + 1;
    if (C[i] == '=') M[i] = M[i + 1];
    if (C[i] == 'R') M[i] = 1;
  }
  MM[0] = 1;
  for (int i = 1; i < n; i++) {
    if (C[i - 1] == 'R') MM[i] = MM[i - 1] + 1;
    if (C[i - 1] == '=') MM[i] = MM[i - 1];
    if (C[i - 1] == 'L') MM[i] = 1;
  }
  for (int i = 0; i < n; i++) printf("%d ", MM[i] > M[i] ? MM[i] : M[i]);
  return 0;
}
