import std.stdio, std.string, std.conv;

void main() {
    string s = readln.chomp;
    int[] num = new int[s.length];
    int cnt;
    foreach (i, x; s) {
        if (x == 'R') {
            ++cnt;
        } else {
            num[i-1] += cnt / 2 + cnt % 2;
            num[i] += cnt / 2;
            cnt = 0;
        }
    }
    foreach_reverse (i, x; s) {
        if (x == 'L') {
            ++cnt;
        } else {
            num[i] += cnt / 2;
            num[i+1] += cnt / 2 + cnt % 2;
            cnt = 0;
        }
    }
    num.to!(string[]).join(" ").writeln;
}