#include <bits/stdc++.h>
#define rep(i,n) for(int i=(0);i<(n);i++)

using namespace std;

typedef long long ll;

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

	string S;
	cin >> S;

	int n = (int) S.size();
	ll dp[21][n];
	rep(j, n){
		if(S[j] == 'L'){
			dp[1][j] = j - 1;
		}else{
			dp[1][j] = j + 1;
		}
	}

	for(int i = 1; i < 20; i++){
		rep(j, n){
			dp[i+1][j] = dp[i][dp[i][j]];
		}
	}

	vector<ll> ans(n);
	rep(j, n) ans[dp[20][j]]++;

	cout << ans[0];
	rep(j, n-1){
		cout << " " << ans[j+1];
	}
	cout << endl;
}
