s = readline.strip.split('') #.map(&:to_i)
arr = s.map{0}

base = 0
last_r = 0
for i in 0.upto(s.size - 1)
  if s[i] == 'R' && s[i+1] == 'L'
    last_r = i
  end
  if s[i] == 'L' && s[i+1] == 'R'
    odd = 0
    even = 0
    for j in base.upto(i)
      if (j - last_r) % 2 == 0
        even += 1
      else
        odd += 1
      end
    end
    arr[last_r] = even
    arr[last_r + 1] = odd
    base = i + 1
  end
end

odd = 0
even = 0
for j in base.upto(s.size - 1)
  if (j - last_r) % 2 == 0
    even += 1
  else
    odd += 1
  end
end
arr[last_r] = even
arr[last_r + 1] = odd

puts arr.join(" ")
