from collections import defaultdict import sys input = sys.stdin.readline N = int(input()) S = input().strip() C = defaultdict(int) for s in S: C[s] += 1 ans = "" for i in range(26): c = chr(ord('A')+i) ans += str(C[c]) print(ans)