## https://yukicoder.me/problems/no/2707 def main(): N = int(input()) S = input() answer = [0] * 26 for s in S: answer[ord(s) - ord("A")] += 1 print("".join(map(str, answer))) if __name__ == "__main__": main()