#E A, B, C = gets.chomp.split.map(&:to_i)
S = gets.chomp.chars

n = S.size
res = Array.new(n, 0)

# Set cnts from R
cnt = 0  # count of R
0.upto(n-1).each do |i|
  if S[i] == 'R'
    cnt += 1
    next
  end

  # L is Found. index is i
  res[i]   += cnt / 2        # RRRL -> 1 (3/2)
  res[i-1] += (cnt + 1) / 2  # RRRL -> 2 ((3+1)/2)
  cnt = 0
end

# Set cnts from L
cnt = 0  # count of L
(n-1).downto(0).each do |i|
  if S[i] == 'L'
    cnt += 1
    next
  end
  
  # R is found. index is i
  res[i]   += cnt / 2       # RLLL -> 1 (3/2)
  res[i+1] += (cnt + 1) / 2 # RLLL -> 2 ((3+1)/2)
  cnt = 0
end

p res.join(" ")