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

int N, d[10], field;
char c[128];

int main(){
    while(scanf("%d", &N), N){
        scanf(" %s", c);
        int p = 0;
        fill(d, d+N, 0);
        field = 0;
        for(int i = 0; i < 100;++i, p = ++p%N){
            if(c[i] == 'M'){
                 ++d[p];
            }else if(c[i] == 'S'){
                field += d[p]+1;
                d[p] = 0;
            }else if(c[i] == 'L'){
                d[p] += field+1;
                field = 0;
            }
        }
        sort(d, d+N);
        for(int i = 0; i < N; ++i){
            printf("%d ", d[i]);
        }
        printf("%d", field);
        puts("");
    }
    return 0;
}