#include<iostream>
#include<cstring>
using namespace std;
char ch[10005];
int idx,id[10005],ans[10005];

int main(){
	scanf("%s",ch+1);
	int n=strlen(ch+1);
	for(int i=1;i<=n;i++){
		if(ch[i]=='L') id[i]=idx;
		else idx=i;
	}
	for(int i=n;i>=1;i--){
		if(ch[i]=='R') id[i]=idx;
		else idx=i;
	}
	for(int i=1;i<=n;i++){
		if(ch[i]=='L'){
			if((i-id[i])%2==1) ans[id[i]+1]++;
			else ans[id[i]]++; 
		}
		else {
			if((id[i]-i)%2==1) ans[id[i]-1]++;
			else ans[id[i]]++;
		}
	}
	for(int i=1;i<=n;i++){
		cout<<ans[i]<<" ";
	}
	
	return 0;
}