#include"bits/stdc++.h"
using namespace std;
#define LL long long
#define PB push_back
#define MP make_pair

int main(){
	while(true){
		int N;
		cin >> N;
		if(N == 0) break;

		string S;
		cin >> S;
		int yama = 0;
		int card[10]={};
		for(int i=0; i<100; i++){
			card[i%N]++;
			if(S[i] == 'S'){
				yama += card[i%N];
				card[i%N] = 0;
			}
			if(S[i] == 'L'){
				card[i%N] += yama;
				yama = 0;
			}
		}
		sort(card, card+N);

		for(int i=0; i<N; i++){
			cout << card[i] << " ";
		}
		cout << yama << endl;
	}
}
