import core.bitop, std.algorithm, std.ascii, std.bigint, std.conv, std.math,
    std.functional, std.numeric, std.range, std.stdio, std.string, std.random,
    std.typecons, std.container, std.format;

// dfmt off
T lread(T = long)(){return readln.chomp.to!T();}
T[] aryread(T = long)(){return readln.split.to!(T[])();}
void scan(TList...)(ref TList Args){auto line = readln.split();
foreach (i, T; TList){T val = line[i].to!(T);Args[i] = val;}}
alias sread = () => readln.chomp();enum MOD = 10 ^^ 9 + 7;
// dfmt on

void main()
{
    auto S = sread();
    auto L = new long[](S.length);
    L[0] = 0;
    foreach (i; 1 .. S.length)
        L[i] = S[i] == 'L' ? L[i - 1] : i;
    auto R = new long[](S.length);
    R[$ - 1] = S.length - 1;
    foreach_reverse (i; 0 .. S.length - 1)
        R[i] = S[i] == 'R' ? R[i + 1] : i;

    auto ans = new long[](S.length);
    // writeln(R, L);
    foreach (i; 0 .. S.length)
    {
        if (S[i] == 'L')
        {
            long d = i - L[i];
            // writeln("L",d);
            ans[L[i] + (d & 1)]++;
        }
        else if (S[i] == 'R')
        {
            long d = R[i] - i;
            // writeln("R",d);
            ans[R[i] - (d & 1)]++;
        }
    }
    write(ans[0]);
    foreach (v; ans[1 .. $])
        write(" ", v);
    writeln();
}
