N = int(input()) S = input().strip() count = [0] * 26 for c in S: count[ord(c) - ord('A')] += 1 result = ''.join(str(x) for x in count) print(result)