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

int main() {
	int N;
	while (cin >> N, N != 0) {
		int a[10] = {},field = 0;
		string str;
		char c;

		cin >> str;

		for (int i = 0; i < 100; i++) {
			c = str[i];

			if (c == 'M')
				a[i % N]++;
			if (c == 'S') {
				field += a[i % N] + 1;
				a[i % N] = 0;
			}
			if (c == 'L'){
				a[i % N] += field + 1;
				field = 0;
			}
		}
		sort(a, a + N);
		for (int i = 0; i < N; i++) {

			cout << a[i]<<" ";

		}
		cout << field << endl;
	}
	return 0;
}