N = int(input()) S = input() cnt = [0] * 26 for i in range(N): cnt[ord(S[i]) - ord('A')] += 1 print("".join([str(cnt[i]) for i in range(26)]))