from collections import Counter N=int(input()) S=input() alp=[chr(i) for i in range(65,65+26)] C=Counter(S) print(*[C[a] for a in alp],sep="")