def I(): return input() def N(): return int(input()) def M(): return map(int,input().split()) def L(): return list(map(int,input().split())) #----------------------------------------- N = N() s = I() dec ={} for i in range(N): if s[i] in dec: dec[s[i]] += 1 else: dec[s[i]] = 1 eng = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" for a in eng: if a in dec: print(dec[a],end='') else: print(0,end="")