import std.stdio, std.conv, std.string, std.range, std.algorithm, std.array, std.functional, std.container;
import std.typecons;

void main() {
  auto S = readln.chomp;
  auto N = S.length;
  Tuple!(int, int)[] arr;
  int i = 0;
  while(i < N) {
    int r,l;
    while(i < N && S[i]=='R') { i++; r++; }
    while(i < N && S[i] == 'L') { i++; l++; }
    arr ~= tuple(r,l);
  }

  foreach(a; arr) {
    int r = a[0], l = a[1];
    foreach(j; 0..(r-1)) {
      write("0 ");
    }
    write((r+1) / 2 + l/ 2, " ");
    write(r / 2 + (l+1)/2, " ");
    foreach(j; 0..(l-1)) {
      write("0 ");
    }
  }
}
