#include <stdio.h>
#include <stdlib.h>
#include <iostream> 
#include <string> 
#include <cstring> 
#include <cstdio> 
using namespace std;
const int N = 1e7;
int ans[N];

int main() {
	ios::sync_with_stdio(0);
	string s;
		cin >> s;
		int n = s.length();
		int cnt = 0;
		for (int i = 0; i < n; i++) {
			if (s[i] == 'R') {
				if (s[i + 1] == 'R') {
					ans[i] = 0; 
					cnt++;
				}
				else {
						ans[i] = cnt / 2 + 1;
						ans[i + 1] = (cnt +1) / 2 + 1;
						cnt = 0;
						for (int j = i+2; j < n; j++) {
							if (s[j] == 'L') {
								ans[j] = 0;
								cnt++;
							}
							else break;
						}
						ans[i] += (cnt + 1) / 2;
						ans[i + 1] += cnt / 2;
						i += cnt;
						cnt = 0;
					}
				}
			}
		
		cout << ans[0];
		for (int i = 1; i < n; i++)
			cout << ' ' << ans[i];
		cout << '\n';
	
	 
	return 0;
}
