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

int main() {
string a;
int i,j,n,m,t,k; 
cin>>a;
for(i=0;i<a.size();i++)
{
	if(a[i]!='R'||a[i+1]!='L')cout<<"0 ";
	else {
		int aa=0,bb=0;
	int tep=i;
	while(a[tep]=='R'){
		if(abs(tep-i)%2==0)aa++;
		else bb++;
		tep--;
	}
	tep=i+1;
	while(a[tep]=='L'){
		if(abs(tep-i-1)%2==0)bb++;
		else aa++;
		tep++;
	}
	cout<<aa<<" "<<bb<<" ";
	i++;
	}
}


}



 