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