n = int(input()) s = input() d = dict() alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" for char in alphabet: d[char] = 0 for char in s: d[char] += 1 for value in d.values(): print(value, end="") print()