import sys input = sys.stdin.readline sys.setrecursionlimit(10**8) N = int(input()) S = input()[:-1] cnt = [0] * 26 for s in S: cnt[ord(s) - ord("A")] += 1 print("".join([str(c) for c in cnt]))