#include<iostream>
#include<string.h>
#include<string>
#include<algorithm>
using namespace std;
int main(){
	string bouzu;
	int i,j,n;
	int p;
	while(1){
		int player[11]={0};
		int ba=0;
		cin>>n;
		if(n==0)break;
		cin>>bouzu;
		for(i=0;i<100;i++){
			p=i%n;
			//cout<<p<<endl;;
			if(bouzu[i]=='S'){//??????
				ba+=player[p]+1;
				player[p]=0;
			}
			else if(bouzu[i]=='L'){//?§?
				player[p]+=ba+1;
				ba=0;
			}
			else{//???
				player[p]++;
			}
		}
		sort(player,player+n);
		for(i=0;i<n;i++){
			if(i!=0){
				cout<<" ";
			}
			cout<<player[i];
		}
		cout<<" "<<ba<<endl;
	}
	return 0;
}