#include<bits/stdc++.h>
#define ll long long
using namespace std;
const int M=1e5+5;

int a[M];
map<int,int> p;
int main(){
	for(int i=0;i<M;i++) a[i]=1;
	string s;
	cin>>s;
	for(int i=0;i<s.length();i++){
		int j=i;
		if(s[i]=='R'){
			while(s[i+1]=='R') a[i]=0,i++;
			int m=i-j;
			a[i]+=m/2;
			a[i+1]+=m/2+m%2;
		}
		else if(s[i]=='L'){
			while(s[i+1]=='L') a[i+1]=0,i++;
			int m=i-j;
			a[j]+=m/2;
			a[j-1]+=m/2+m%2;
		}
	}
	cout<<a[0];
	for(int i=1;i<s.length();i++)
		cout<<" "<<a[i];
	return 0;
}