var chars = require("fs").readFileSync("/dev/stdin", "utf8").split('');
var counts = chars.map(function() { return 0; })

var cells = [];

// collect `R`
var count = 0;
for (var i = 0; i < chars.length; i++) {
  if (chars[i] == 'R') {
    count++;
  } else if (count >= 1) {
    counts[i - 1] = count;
    count = 0;
  }
}

// collect `L`
var count = 0;
for (var i = chars.length - 1; i >= 0; i--) {
  if (chars[i] == 'L') {
    count++;
  } else if (count >= 1) {
    counts[i + 1] = count;
    count = 0;
  }
}

// collect `RL`
for (var i = 0; i < chars.length - 1; i++) {
  if (chars[i] == 'R' && chars[i + 1] == 'L') {
    var countI = counts[i];
    counts[i] = counts[i + 1];
    counts[i + 1] = countI;
  }
}


console.log(counts.join(' '));
