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

#define rep(i,x) for(int i=0;i<x;i++)
#define pb push_back
#define sr(v) sort(v.begin(),v.end());

int main(){
	while(1){
		int n; cin>>n; if(n==0)break;
		string s; cin>>s;

		int a[16]={0};
		int t=0;

		rep(i,100){
			switch(s[i]){
				case 'M': a[t]++; break;
				case 'S': a[14]+=a[t]+1; a[t]=0; break;
				case 'L': a[t]+=a[14]+1; a[14]=0; break;
			}
			t++; t%=n;
		}

		vector<int> ret; rep(i,n)ret.pb(a[i]); sr(ret);

		rep(i,n)cout<<ret[i]<<" "; cout<<a[14]<<endl;
	}
}