Public Class Program
  Shared Sub Main()
    Dim s As String = Console.ReadLine()
    Dim l As Long = s.Length()
    Dim b(0 To l - 1) As Boolean
    Dim dp(0 To l - 1) As Long
    For i As Long = 0 To l - 1
      b(i) = (s(i + If(s(i) = "L", -1, 1)) = s(i))
      dp(i) = 1
    Next
    For i As Long = 0 To l - 1
      If s(i) = "R" AndAlso b(i) Then
        dp(i + 2) += dp(i)
        dp(i) = 0
      End If
    Next
    For i As Long = l - 1 To 0 Step -1
      If s(i) = "L" AndAlso b(i) Then
        dp(i - 2) += dp(i)
        dp(i) = 0
      End If
    Next
    Console.WriteLine(String.Join(Of Long)(" ", dp))
  End Sub
End Class