#include<bits/stdc++.h>
#define rep(i,a,b) for(int i=a;i<b;i++)
#define rrep(i,a,b) for(int i=a;i>=b;i--)
using namespace std;

string S;
int N;
int dp[33][101010];
int ans[101010];

int main(){
    cin>>S;
    N=S.length();
    rep(i,0,N){
        if(S[i]=='R')dp[0][i]=i+1;
        else dp[0][i]=i-1;

    }
    rep(p,0,32) rep(i,0,N) dp[p+1][i]=dp[p][dp[p][i]];
    rep(i,0,N)ans[dp[32][i]]++;
    rep(i,0,N){
        if(i)printf(" ");
        printf("%d",ans[i]);

    }
    printf("\n");
}