n=int(input()) s=input() alp=[0]*26 a="ABCDEFGHIJKLMNOPQRSTUVWXYZ" for i in s: alp[a.index(i)]+=1 ans="" for i in alp: ans+=str(i) print(ans)