N=int(input()) S=input() abc="ABCDEFGHIJKLMNOPQRSTUVWXYZ" ans=[0 for _ in range(len(abc))] for i in range(len(abc)): ans[i]=S.count(abc[i]) ans=[str(a) for a in ans] print(''.join(ans))