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

int main() {
  while (true) {
    int n;
    cin >> n;
    if (n == 0) {
      break;
    }
    char c[100];
    int i;
    for (i = 0; i < 100; i++) {
      cin >> c[i];
    }

    vector<int> menber(n);
    int ba = 0;

    for (i = 0; i < 100; i++) {
      menber[i % n]++;
      if (c[i] == 'S') {
        ba += menber[i % n];
        menber[i % n] = 0;
      } else if (c[i] == 'L') {
        menber[i % n] += ba;
        ba = 0;
      }
    }

    sort(menber.begin(), menber.end());
    for (i = 0; i < n; i++) {
      cout << menber[i] << ' ';
    }
    cout << ba << endl;


  }
  return 0;
}

