n=int(input())
x=input()
from collections import Counter
c=Counter(list(x))
print("".join([str(c[chr(ord("A")+i)])for i in range(26)]))