#include <iostream>
#include <bits/stdc++.h>
using namespace std;

int main() {
	// your code goes here
	
	
	
	string s;
	cin>>s;
	int n;
	n=s.length();
	int ans[n];
	memset(ans,0,sizeof(ans));
	
	int i=0,j=0;
	int cntr=0,cntl=0;
	
	while(i<n){
		
		while( i<s.length() && s[i]=='R'){
			cntr++;
			i++;
		}
	
		j=i;
		
		i--;
	
		while( j<s.length() && s[j]=='L'){
			cntl++;
			j++;
		}
		
		ans[i+1] = (cntl+1)/2 + cntr/2;
		ans[i] = (cntr+1)/2 + cntl/2;
		
		i=j;
		cntr=0;
		cntl=0;
		
	}
	
	for(int i=0;i<n;i++)
		cout<<ans[i]<<" ";
	return 0;
}