from collections import * N = int(input()) C = Counter(input()) ans = "" for i in range(26): ans += str(C[chr(ord("A") + i)]) print(ans)