#MMA Contest 018 B N = int(input()) S = [ord(s) - ord('A') for s in input()] T = [0] * 26 for s in S: T[s] += 1 for i in range(26): T[i] = str(T[i]) print(''.join(T))