N=int(input()) S=list(input()) import collections C=collections.Counter(S) for i in range(26): print(C[chr(i+65)],end="")