n = int(input()) s = input().strip() counts = [0] * 26 for c in s: index = ord(c) - ord('A') counts[index] += 1 result = ''.join(map(str, counts)) print(result)