use std::cmp;
use std::collections::BinaryHeap;
use std::collections::HashMap;
use std::collections::HashSet;
use std::collections::VecDeque;
use std::io::Read;
use std::usize::MAX;

macro_rules! input {(source = $s:expr, $($r:tt)*) => {let mut iter = $s.split_whitespace();let mut next = || { iter.next().unwrap() };input_inner!{next, $($r)*}};($($r:tt)*) => {let stdin = std::io::stdin();let mut bytes = std::io::Read::bytes(std::io::BufReader::new(stdin.lock()));let mut next = move || -> String{bytes.by_ref().map(|r|r.unwrap() as char).skip_while(|c|c.is_whitespace()).take_while(|c|!c.is_whitespace()).collect()};input_inner!{next, $($r)*}};}
macro_rules! input_inner {($next:expr) => {};($next:expr, ) => {};($next:expr, $var:ident : $t:tt $($r:tt)*) => {let $var = read_value!($next, $t);input_inner!{$next $($r)*}};}
macro_rules! read_value {($next:expr, ( $($t:tt),* )) => {( $(read_value!($next, $t)),* )};($next:expr, [ $t:tt ; $len:expr ]) => {(0..$len).map(|_| read_value!($next, $t)).collect::<Vec<_>>()};($next:expr, chars) => {read_value!($next, String).chars().collect::<Vec<char>>()};($next:expr, usize1) => {read_value!($next, usize) - 1};($next:expr, [ $t:tt ]) => {{let len = read_value!($next, usize);(0..len).map(|_| read_value!($next, $t)).collect::<Vec<_>>()}};($next:expr, $t:ty) => {$next().parse::<$t>().expect("Parse error")};}

fn solve() {
    input! {
        s: chars
    }

    let len = s.len();

    let mut s_group: Vec<usize> = Vec::new();

    let mut last_r = if s[0] == 'R' { true } else { false };
    let mut count = 1;
    for i in 1..len {
        if s[i] == 'R' {
            if last_r {
                count += 1;
            } else {
                s_group.push(count);
                count = 1;
            }
        } else {
            if !last_r {
                count += 1;
            } else {
                s_group.push(count);
                count = 1;
            }
        }
        last_r = if s[i] == 'R' { true } else { false };
    }
    s_group.push(count);

    //println!("{:?}", s_group);

    let mut is_r = true;
    let group_len = s_group.len();
    for i in 0..group_len {
        for j in 0..s_group[i] {
            if is_r {
                if j != s_group[i] - 1 {
                    print!("0");
                } else {
                    print!("{}", ceil(s_group[i], 2) + s_group[i + 1] / 2);
                }
            } else {
                if j != 0 {
                    print!("0");
                } else {
                    print!("{}", ceil(s_group[i], 2) + s_group[i - 1] / 2);
                }
            }

            if i != group_len - 1 || j != s_group[i] - 1 {
                print!(" ");
            }
        }
        is_r = !is_r;
    }
}

fn ceil(a: usize, b: usize) -> usize {
    (a + (b - 1)) / b
}

fn main() {
    let thd = std::thread::Builder::new().stack_size(104_857_600);
    thd.spawn(|| solve()).unwrap().join().unwrap();

    /*
    // 入力を一括で読み込む場合
    let mut buf = String::new();
    std::io::stdin().read_to_string(&mut buf).unwrap();
    let mut input = buf.split_whitespace();

    // inputに対しnext()で読み込んでいく
    let q: usize = input.next().unwrap().parse().unwrap();
    */
}

const LARGE_PRIME: u64 = 1_000_000_007;

// @〜でsnippet


Measured memory_bytes: 8700