#include <iostream>
using namespace std;

string s;
int cnt[111111];

int main(void)
{
	cin.tie(NULL);
	cout.tie(NULL);
	ios_base::sync_with_stdio(false);

	int i, point;

	cin >> s;

	for (i = 0; i < s.size(); i++)
		if (s[i] == 'L')
			cnt[point + (i - point) % 2]++;
		else
			point = i;

	for (i = s.size() - 1; i >= 0; i--)
		if (s[i] == 'R')
			cnt[point - (point - i) % 2]++;
		else
			point = i;

	for (i = 0; i < s.size(); i++)
		cout << cnt[i] << " ";
	return 0;
}