N = int(input()) S = input() alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" count = {a: 0 for a in alphabet} for s in S: count[s] += 1 ans = "".join([str(count[a]) for a in alphabet]) print(ans)