#include <iostream>
#include <vector>
#include <string>
using namespace std;

#define rep(i, n) for(int i = 0; i < (n); ++i)

signed main() {
  ios::sync_with_stdio(false);
  cin.tie(0);

  string s; cin >> s;
  int N = s.size();
  vector<int> ans(N, 1);

  rep(i, N-1) {
    if(s[i] == 'R' && s[i+1] == 'R') {
      ans[i+2] += ans[i];
      ans[i] = 0;
    }
    if(s[N-1-i] == 'L' && s[N-1-i-1] == 'L') {
      ans[N-1-i-2] += ans[N-1-i];
      ans[N-1-i] = 0;
    }
  }

  rep(i, N) {
    cout << ans[i] << (i == N-1 ? '\n' : ' ');
  }
  return 0;
}
