_ = input() s = input() cnt = [str(s.count(c)) for c in "ABCDEFGHIJKLMNOPQRSTUVWXYZ"] print("".join(cnt))