input() a = [0]*26 for i in input(): a[chr(i)-chr('A')] += 1 print(*a,sep='')