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

int main(int argc, char const *argv[])
{
	string s;
	cin>>s;
	int ans[s.size()];
	for (int i = 0; i < s.size(); ++i)
	{
		ans[i]=1;
	}
	for (int i = 0; i < s.size()-1; ++i)
	{
		if (s.at(i)=='R'&&s.at(i+1)=='R')
		{
			ans[i+2]+=ans[i];
			ans[i]=0;
		}
	}
	for (int i = s.size()-1; i > 0; --i)
	{
		if (s.at(i)=='L'&&s.at(i-1)=='L')
		{
			ans[i-2]+=ans[i];
			ans[i]=0;
		}
	}
	cout<<ans[0];
	for (int i = 1; i < s.size(); ++i)
	{
		cout<<" "<<ans[i];
	}
	cout<<endl;
	return 0;
}
