n = int(input()) s = input() count = dict() for i in range(26): count[i] = 0 for i in s: count[ord(i) - 65] += 1 out = [str(o) for o in count.values()] print("".join(out))