#include<bits/stdc++.h>
using namespace std;
string s;
int num[100005];
int main()
{
	cin>>s;
	for(int i=1;i<s.size();i++){
		if(s[i-1]!=s[i]&&s[i]=='L'){
			int l=i-1,r=i;
			while(l>=0&&(l==i-1||s[l]==s[l+1]))num[i-1+(i-l-1)%2]++,l--;
			while((r==i||s[r]==s[r-1])&&r<s.size())num[i-(r-i)%2]++,r++;
		}
	}
	for(int i=0;i<s.size();i++)
		cout<<num[i]<<" ";
	return 0;
}