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

int32_t main()
{
    string S;
    cin>>S;
    int n=S.length();
    // RRRRLLLLLRRRRLLLL
    int i=0;
    vector<int>ans(n, 0);
    while(i<n)
    {
        int j=i;
        while(j<n && S[j]=='R') j++;
        int mid=j-1;
        while(j<n && S[j]=='L') j++;

        while(i<j)
        {
            if(abs(mid-i)%2)
            {
                ans[mid+1]++;
            } 
            else ans[mid]++;
            i++;
        }
    }
    for(auto &x: ans) cout<<x<<' ';
}