S = list(input()) cnt = [0 for _ in range(26)] for i in S: cnt[ord(i)-97] += 1 for i in cnt: print(i, end=' ')
S = list(input()) cnt = [0] * 26 for i in S: cnt[ord(i)-ord('a')] += 1 print(*cnt)