### main

while true
  n = gets.strip.to_i
  break if n == 0

  cards = gets.strip

  plyrs = n.times.map{0}
  fld = 0

  for i in (0...100)
    pi = i % n

    case cards[i]
    when 'M'
      plyrs[pi] += 1
    when 'S'
      fld += plyrs[pi] + 1
      plyrs[pi] = 0
    when 'L'
      plyrs[pi] += fld + 1
      fld = 0
    end
  end

  puts (plyrs.sort + [fld]).join(' ')
end