import string n = int(input()) s = input() alphas = string.ascii_uppercase result = "" for a in alphas: result += str(s.count(a)) print(result)