s = gets.chomp
f = "R"
c = 0
xr = 0
x = 0
a = []
s.length.times do |i|
  a[i] = 0
end
s.length.times do |i|
  if s[i] == "R" && f == "R"
    c += 1
  elsif s[i] == "R" && f == "L"
    if (x - xr) % 2 == 0
      a[x] += c - c / 2
      a[x+1] += c / 2
    else
      a[x+1] += c - c / 2
      a[x] += c / 2
    end
    f = "R"
    xr = i
    c = 1
  elsif s[i] == "L" && f == "R"
    f = "L"
    x = i - 1
    c += 1
  elsif s[i] == "L" && f == "L"
    c += 1
  end
end
    if (x - xr) % 2 == 0
      a[x] += c - c / 2
      a[x+1] += c / 2
    else
      a[x+1] += c - c / 2
      a[x] += c / 2
    end
print a[0]
(s.length-1).times do |i|
  print " #{a[i+1]}"
end
