from collections import Counter N = int(input()) S = str(input()) cnt = Counter(S) for i in range(26): print(cnt[chr(ord("A") + i)], end = "") print()