"use strict";

const input = require("fs").readFileSync("/dev/stdin", "utf8");
const directions = input.split("").map(function(val) {
  if (val === "R") {
    return 1;
  } else {
    return -1;
  }
});
const children = Array(directions.length).fill(1);

let countL = 0;
let maxCountL = 0;
let countR = 1;
let maxCountR = 1;
let p = 0;
for (let i = 0; i < directions.length; i++) {
  if (directions[i] === -1 && p === directions[i]) {
    countL++;
    countR = 0;
    if (countL > maxCountL) {
      maxCountL = countL;
    }
  } else if (directions[i] === 1 && p === directions[i]) {
    countR++;
    countL = 0;
    if (countR > maxCountR) {
      maxCountR = countR;
    }
  }
  p = directions[i];
}

let loop;
if (maxCountL > maxCountR) {
  loop = maxCountL;
} else {
  loop = maxCountR;
}

const main = (directions, children, loop) => {
  let next = Array(directions.length).fill(0);
  for (let i = 1; i <= loop; i++) {
    for (let j = 0; j < children.length; j++) {
      if (0 < directions[j]) {
        next[j + 1] += children[j];
      } else {
        next[j - 1] += children[j];
      }
    }
    children = next;
    next = Array(directions.length).fill(0);
  }
  return children.join(" ");
};

console.log(main(directions, children, loop));