# 標準入力された値を整数に変換する def INT(): return int(input()) # 標準入力された複数の値を整数に変換する def MI(): return map(int, input().split()) # 標準入力された複数の値を整数のリストに変換する def LI(): return list(map(int, input().split())) from string import ascii_uppercase from collections import Counter N = INT() S = list(input()) Cs = Counter(S) ans = [] for s in ascii_uppercase: ans.append(str(Cs[s])) print("".join(ans))