n=int(input()) s=input() for i in range(ord("A"),ord("Z")+1): print(s.count(chr(i)),end="") print()