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