from collections import Counter from string import ascii_uppercase N = int(input()) S = input() freq = Counter(S) ans = [] for c in ascii_uppercase: ans.append(str(freq[c])) print(''.join(ans))