a=int(input()) x=input() y="" for i in range(26): #print(chr(65+i)) y+=str(x.count(chr(65+i))) print(y)