S = gets.chomp

n = S.size
ans = [0] * n
r, l, j, k = nil, nil, nil, -1
(0 ... n).each do |i|
  case S[i, 2]
  when 'RL'
    j = i
    r = j - k
  when 'LR', 'L'
    k = i
    l = i - j
    ans[j] = (r - 1)/2 + 1 + l/2
    ans[j + 1] = r/2 + 1 + (l - 1)/2
  end
end
puts ans.join(' ')