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