#include <bits/stdc++.h>
using namespace std;
const double eps = 1e-5;
const double pi = acos(-1.0);
const int INF = 0x3f3f3f3f;
char stu[1010];
int dp[1010];
int main() {
  int n, len;
  scanf("%d", &n);
  scanf("%s", stu + 1);
  len = n;
  dp[0] = 1;
  for (int i = 1; i < len; i++) {
    if (stu[i] == '=')
      dp[i] = dp[i - 1];
    else if (stu[i] == 'R')
      dp[i] = dp[i - 1] + 1;
    else {
      if (dp[i - 1] > 1)
        dp[i] = 1;
      else {
        dp[i] = 1;
        dp[i - 1]++;
        for (int j = i - 1; j >= 1; j--) {
          if (stu[j] == '=')
            dp[j - 1] = dp[j];
          else if (stu[j] == 'L') {
            if (dp[j - 1] == dp[j])
              dp[j - 1]++;
            else
              break;
          } else
            break;
        }
      }
    }
  }
  for (int i = 0; i < n; i++) {
    printf("%d ", dp[i]);
  }
  return 0;
}
