from string import ascii_uppercase n = int(input()) s = input() # まあ、間に合う print("".join(map(str, (s.count(c) for c in ascii_uppercase))))