s = gets.chomp
n = s.size

ilr = [] # [1, 1, 2], [3, 1, 1]
i = 0
while i < n
  cnt = 0
  while s[i] == "R" && i < n
    cnt += 1
    i += 1
  end
  rl = i - 1
  r = cnt
  cnt = 0
  while s[i] == "L" && i < n
    cnt += 1
    i += 1
  end
  ilr << [rl, cnt, r]
end

res = Array.new(n, 0)
ilr.each do |i, l, r|
  res[i] = l / 2 + (r + 1) / 2
  res[i + 1] = r / 2 + (l + 1) / 2
end
puts res.join(" ")