n = int(input()) dic = {chr(x): 0 for x in range(ord("A"), ord("Z")+1)} S = input() for s in S: dic[s] += 1 for v in dic.values(): print(v, end="")