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