N = int(input()) S = input() d = {chr(i): 0 for i in range(65, 65+26)} for s in S: d[s] += 1 print(''.join(map(str, d.values())))