N = int(input()) S = input() ans = '' for i in 'ABCDEFGHIJKLMNOPQRSTUVWXYZ': ans += str(S.count(i)) print(ans)