#include <bits/stdc++.h>
using namespace std;

int main() {
  string s;
  cin>>s;
  int n=s.size();
  vector<int> a(n);
  for (int i=0;i<(n-1);++i) {
    if (s[i]=='R' && s[i+1]=='L') {
      a[i]=1;
      a[i+1]=1;
    }
  }
  for (int i=0;i<n;++i) {
    if (a[i]>=1) {
      continue;
    } else if (s[i]=='R') {
      int q=i;
      while (a[q]==0) {
        q+=2;
      }
      a[q]+=1;
    } else {
      int p=i;
      while (a[p]==0) {
        p-=2;
      }
      a[p]+=1;
    }
  }
  for (int i=0;i<n;++i) {
    cout<<a[i]<<" ";
  }
}