N = int(input()) S = input() ans = "" for i in range(26): ans += str(S.count(chr(ord("A")+i))) print(ans)