#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;

int f(int x,int y,int a,int b){
	if( x >= 5 && y >= 2 ) return ( a * x + b * y ) * 8 / 10;
	return ( a * x + b * y );
}

int main(){
	int N;
	while(cin >> N&&N){
		string s;
		cin >> s;
		string te[100];
		string ba;
		for(int i = 0 ; i < s.size() ; i++){
			int u = i % N;
			te[u] += s[i];
			if( s[i]=='S' ){
				ba += te[u];
				te[u]="";
			}
			if( s[i]=='L' ){
				te[u]+= ba;
				ba = "";
			}
		}
		vector<int> a;
		for(int i = 0 ; i < N ; i++){
			a.push_back(te[i].size());
		}
		sort(a.begin(),a.end());
		for(int i = 0 ; i < N ; i++){
			cout << a[i] << " ";
		}
		cout << ba.size() << endl;
		
	}
	
}