#include <iostream>
#include <vector>
#include <algorithm>
#include <math.h>
using namespace std;

int main(){
	long i=0,n,l,s,r;
	string str;
	cin>>str;
	n=str.size();
	vector<long> chi(n,0);
	while(i<n){
		l=i;
		while(str.at(i)=='R'){
			i++;
		}
		s=i;
		while(str.at(i)=='L'){
			i++;
			if(i==n){
				break;
			}
		}
		r=i-1;
		//cout<<l<<s<<r<<endl;
		chi.at(s-1)+=(s-l)/2+(s-l)%2;
		chi.at(s)+=(s-l)/2;
		chi.at(s-1)+=(r-s+1)/2;
		chi.at(s)+=(r-s+1)/2+(r-s+1)%2;
	}
	cout<<chi.at(0);
	for(i=1;i<n;i++){
		cout<<" "<<chi.at(i);
	}
	return 0;
}

