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='')