N = int(input()) S = input() T = "" for i in range(26): T += str(S.count(chr(ord("A")+i))) print(T)