N=int(input()) S=list(input()) cnt=[0 for _ in range(26)] for s in S: cnt[ord(s)-ord("A")]+=1 ans="" for i in range(26): ans+=str(cnt[i]) print(ans)