n=int(input()) S=input() X=[0 for i in range(26)] for i in range(n): X[ord(S[i])-ord('A')]+=1 print(*[str(X[i]) for i in range(26)],sep='')