
아스키코드 (ASCII)
-알파벳은 26문자
-'A'(65) ~ 'Z' (90)
-'a'(97) ~ 'z' (122)
ord() 함수
-ord(문자)
-문자를 넣으면 숫자를반환
chr() 함수
-chr(숫자)
-숫자를 넣으면 아스키 코드 반환
abs() 함수
- 절댓값 계산하는 함수

# 백준 #10818 (알파벳 개수) 브론즈 4
# 입력 ) S (소문자로 이루어진 단어)
S = input()
alphabet_count_list = [0 for _ in range (26)]
# print(alphabet_count_list)
# 핵심 !!! )문자열의 알파벳 개수 계산하기
for j in S :
# print(j)
for lower_alphabet in range (97,123) :
# print(chr(lower_alphabet),end="")
if j == chr(lower_alphabet) :
list_index = ord(j)
# print("index num",list_index)
alphabet_count_list[abs(97-list_index)] += 1
# print()
# 출력 ) 단어에 포함되어 있는 개수 출력
for count in alphabet_count_list :
print(count,end=" ")