input() d = [0] * 26 for c in input(): d[ord(c) - 65] += 1 print(*d, sep='')