S = gets.chomp.chars
LR = [0] * S.size

l_len = 0
S.size.times{|i|
  if S[i] == ?L
    l_len += 1
    LR[i] = -l_len
  else
    l_len = 0
  end
}

r_len = 0
S.size.times.reverse_each{|i|
  if S[i] == ?R
    r_len += 1
    LR[i] = r_len
  else
    r_len = 0
  end
}

ans = [0] * S.size
S.size.times{|i|
  sign = LR[i] > 0 ? 1 : -1
  idx = i + LR[i] - LR[i].abs % 2 * sign
  ans[idx] += 1
}
puts ans*" "