def Main(): n=int(input()) s=input() for i in range(26): print(s.count(chr(ord("A")+i)),end="") print() Main()