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