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

int main() {
	string S;
	int COUNT = 0, ANS[100000] = {};
	cin >> S;
	for (int i = 0; i < S.size(); i++) {
		if (S[i] == 'R') {
			COUNT++;
		}
		else {
			ANS[i - 1] += (COUNT + 1) / 2;
			ANS[i] += COUNT / 2;
			COUNT = 0;
		}
	}
	for (int i = S.size() - 1; i >= 0; i--) {
		if (S[i] == 'L') {
			COUNT++;
		}
		else {
			ANS[i + 1] += (COUNT + 1) / 2;
			ANS[i] += COUNT / 2;
			COUNT = 0;
		}
	}
	for (int i = 0; i < S.size(); i++) {
		if (i != 0) cout << " ";
		cout << ANS[i];
	}
	cout << endl;
}