import std.stdio, std.array, std.string, std.conv, std.algorithm;
import std.typecons, std.range, std.random, std.math, std.container;
import std.numeric, std.bigint, core.bitop, std.bitmanip;

void main() {
    auto S = readln.chomp;
    auto N = S.length.to!int;
    auto ans = new int[](N);

    foreach (i; 0..N-1) {
        if (S[i..i+2] == "RL") {
            int p = i;
            for (int j = i, k = 0; j >= 0 && S[j] == 'R'; --j, k ^= 1) ans[p+k] += 1;
            p = i + 1;
            for (int j = i+1, k = 0; j < N && S[j] == 'L'; ++j, k ^= 1) ans[p-k] += 1;
        }
    }

    ans.map!(to!string).join(" ").writeln;
}
