
L, R = 'L', 'R'
S = gets.chomp.split('')
size = S.length

ans = Array.new(S.length, 0)
i = 0
l, r, e = 0

while i + 1 < size do
  r = i
  while S[i] == R do
    i += 1
  end
  l = i

  while S[i] == L do
    i += 1
  end

  e = i
  rt = l - r
  lt = e - l

  ans[l - 1] = rt - rt / 2 + lt / 2
  ans[l] = rt / 2 + lt - lt / 2
end

puts ans.join(' ')
