function main(input) {
    var S = input.trim();
    var move = 1000000;
    var squares = Array(S.length).fill(0);
    var rightIndex = 0;
    var leftIndex = 0;
    for (var i = 0; S.length > i; i++) {
        var j = i;
        var count = 0;

        if (S[j] === "R") {
            if (j < rightIndex) {
                j = rightIndex;
                count = j - i;
            }
        } else {
            if (j > leftIndex) {
                j = leftIndex;
                count = i - j;
            }
        }

        while (S[j] + S[j+1] !== "RL") {
            if (S[j] === "R") {
                j++;
            } else {
                j--;
            }

            count++;
        }

        if (j >= i) rightIndex = j;
        if (i >= j) leftIndex = j;

        var point = (move - count) % 2 === 0 ? j : j + 1;
        squares[point] += 1;
    }

    console.log(squares.join(" "));
}

main(require("fs").readFileSync("/dev/stdin", "utf8"));
