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