'use strict';

function main(input) {
  const lines = input.split('\n');
  lines.pop();
  lines.forEach(line => {
    fn(line);
  });
}

function fn(input) {
  const array = Array.prototype.map.call(input, (v => {
    return {
      m: v,
      n: 1
    };
  }));
  let c = 1;
  while(c <= 1000) {
    for(let i = 0; i < array.length; i++) {
      if (array[i].n > 0) {
        array[i].n--;
        if (array[i].m === 'R') {
          array[i+1].n++;
        }
        if (array[i].m === 'L') {
          array[i-1].n++;
        }
      }
    }
    c++;
  }
  console.log(array.map(v => {return v.n}).join(' '));
}

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