n = int(input()) s = list(input()) cnt = [0]*26 for i in s: cnt[ord(i)-ord("A")] += 1 print(*cnt, sep="")