N=int(input()) S=input() chars="ABCDEFGHIJKLMNOPQRSTUVWXYZ" for i in chars: print(S.count(i),end="") print("")