N = int(input()) S = input() s_li = list(S) ans = list() alpha = list("ABCDEFGHIJKLMNOPQRSTUVWXYZ") for a in alpha: ans.append(s_li.count(a)) print(*ans, sep="")