#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n;
  string s;
  cin >> n >> s;
  long long a[1001];
  a[0] = 1;
  for (long long i = 1; i < n; i++) {
    if (s[i - 1] == 'L')
      a[i] = 1;
    else if (s[i - 1] == 'R')
      a[i] = a[i - 1] + 1;
    else
      a[i] = a[i - 1];
    for (long long j = i - 1; j >= 0; j--) {
      if (s[j] == 'L' and a[j] <= a[j + 1]) a[j] = a[j + 1] + 1;
      if (s[j] == '=' and a[j] != a[j + 1]) a[j] = a[j + 1];
    }
  }
  for (long long i = 0; i < n; i++) cout << a[i] << " ";
}
