S = gets.chomp
N = S.size

seq = 0
max_seq = 0
prev = nil
N.times do |i|
  if prev == S[i]
    seq += 1
  else
    seq = 0
  end
  max_seq = seq if seq > max_seq
  prev = S[i]
end

def inc_turn(st)
  next_st = Array.new(N, 0)
  N.times do |i|
    next_st[i] ||= 0
    if S[i] == "R"
      next_st[i+1] += st[i]
    else
      next_st[i-1] += st[i]
    end
  end
  next_st
end

st = Array.new(N, 1)
T = 10**100

T.times do |i|
  if i < max_seq
    st = inc_turn(st)
  else
    st = inc_turn(st) if (T - i) % 2 != 0
    break
  end
end
puts st.join(" ")
