n = int(input()) s = input() C = [0 for _ in range(26)] for i in range(n): C[ord(s[i]) - ord('A')] += 1 print(''.join(map(str, C)))