#include<cstdio>
#include<cstring>
using namespace std;
char s[1000050];
int a[1000050];
int main(){
	scanf("%s",s+1);
	int n=strlen(s+1),last=0;
	for (int i=1;i<n;i++){
		if (s[i]=='R'&&s[i+1]=='L') {
			a[i]+=(i-last)-(i-last)/2;
			a[i+1]+=(i-last)/2;
		}
		if (s[i]=='L') last=i; 
	}
	last=n+1;
	for (int i=n;i>1;i--){
		if (s[i]=='L'&&s[i-1]=='R') {
			a[i-1]+=(last-i)/2;
			a[i]+=(last-i)-(last-i)/2;
			last=i;
		}
		if (s[i]=='R') last=i;
	}
	
	for (int i=1;i<=n;i++)
	printf("%d ",a[i]);
	return 0;
}