S = gets.chomp
H = S.size

goal = [-1] * H
que = []

(H - 1).times do |i|
  next if S[i] != "R" || S[i + 1] != "L"
  goal[i] = i
  goal[i + 1] = i + 1
  que.push(i)
  que.push(i + 1)
end

until que.empty?
  n = que.pop
  if n >= 2 && S[n - 1] == "R" && S[n - 2] == "R" && goal[n - 2] == -1
    goal[n - 2] = goal[n]
    que.push(n - 2)
  end

  if n < H - 2 && S[n + 1] == "L" && S[n + 2] == "L" && goal[n + 2] == -1
    goal[n + 2] = goal[n]
    que.push(n + 2)
  end
end

ans = [0] * H
goal.each do |g|
  ans[g] += 1
end
puts ans.join(" ")



