n = int(input()) s = input() cnt = [0] * 26 for i in range(n): cnt[ord(s[i]) - ord('A')] += 1 print(*cnt, sep="")