#include <bits/stdc++.h>
using namespace std;

int main() {
  string S;
  cin >> S;
  int N = S.size();
  vector<int> V(N);
  for (int i = 0; i < N; i++) {
    if (S.at(i) == 'R') V.at(i) = i + 1;
    if (S.at(i) == 'L') V.at(i) = i - 1;
  }
  int cnt = 20;
  while (cnt--) {
    vector<int> tmp(N);
    for (int i = 0; i < N; i++) tmp.at(i) = V.at(V.at(i));
    V = tmp;
  }
  vector<int> ans(N);
  for (int i = 0; i < N; i++) ans.at(V.at(i))++;
  for (auto a : ans) cout << a << "\n"; 
}