n = int(input()) s = input() line = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" for i in line: print(s.count(i),end='')