a='ABCDEFGHIJKLMNOPQRSTUVWXYZ' n=int(input()) s=input() l='' for i in range(len(a)): l+=str(s.count(a[i])) print(l)