#include<iostream>
#include<algorithm>
#include<string>
using namespace std;

string s;
int a[100009];
int main()
{
	cin>>s;
	int len=s.length();
	int sum=0;
	for(int i=0;i<len;i++)
	{
		if(s[i]=='L')
		{
			a[i-1]+=(sum+1)/2;
			a[i]+=sum/2;
			sum=0;
		}
		else sum++;
	}	
	sum=0;
	for(int i=len-1;i>=0;i--)
	{
		if(s[i]=='R')
		{
			a[i+1]+=(sum+1)/2;
			a[i]+=sum/2;
			sum=0;
		}
		else sum++;
	}
	for(int i=0;i<len;i++)
	{
		cout<<a[i]<<" "; 
	}
	return 0;
} 