n = int(input()) ls = list(input()) ans = [0] * 26 for i in range(n): a = ord(ls[i]) - 65 ans[a] += 1 for i in ans: print(i,end="") print("")