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

int main()
{
	string s;
	cin>>s;
	s+="R";
	int n=s.size();
	vector<int>a(n);
	int p=0,k=0;
	for(int i=0;i<n;i++)
	{
		if(s[i]=='L'&&s[i-1]=='R')
			p=i;
		if(s[i]=='R'&&s[i-1]=='L')
		{
			int t=p-k+1;
			int n=t/2;
			int m=t-n-1;
			a[p-1]=n+(i-p)/2;
			a[p]=m+(i-p)-((i-p)/2);
			k=i;
		}
		else
			a[i]=0;
	}
	for(int i=0;i<n-1;i++)
		cout<<a[i]<<" ";
	cout<<endl;

	return 0;
}