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