#include <bits/stdc++.h>
using namespace std;

int main() {
    int n;
    while(cin >> n, n){
        string s;
        cin >> s;
        int cnt[15]{}, a=0;
        for(int i=0;i<100;i++){
            cnt[i%n]++;
            if(s[i]=='S'){
                a += cnt[i%n];
                cnt[i%n] = 0;
            }
            else if(s[i]=='L'){
                cnt[i%n] += a;
                a = 0;
            }
        }
        sort(cnt, cnt+n);
        for(int i=0;i<n;i++){
            cout << cnt[i] << " ";
        }
        cout << a << endl;
    }
    return 0;
}
