import sys
input = sys.stdin.readline

from collections import Counter

N=int(input())
S=input().strip()
C=Counter(S)

for x in "ABCDEFGHIJKLMNOPQRSTUVWXYZ":
    print(C[x],end="")