import itertools N = int(input()) S = input() for i in range(1, N + 1): cnt = 0 for combi in itertools.combinations(S, i): prev_color = '' match_flg = True for color in combi: if color == prev_color: match_flg = False else: prev_color = color if match_flg: cnt += 1 print(cnt)