#include <iostream>
#include <vector>
#include <string>

int main() {
    std::string S;
    std::cin >> S;

    int N = S.size();

    std::vector<int> ans(N);

    int i = 0;
    while (i < N) {
        int r = 0, l = 0;

        while (S[i + r] == 'R') r++;
        while (S[i + r + l] == 'L') l++;

        ans[i + r - 1] = (r + 1) / 2 + l / 2;
        ans[i + r] = r / 2 + (l + 1) / 2;

        i += r + l;
    }

    for (int i = 0; i < N; i++)
        std::cout << ans[i] << (i < N - 1 ? " " : "\n");
}