#include<iostream>
#include<string>
using namespace std;
int arr[27];
int main(void){
string s; cin >> s;
for(int i=0; i<s.size(); i++)
arr[s[i]-'a']++;
for(int i=0; i<26; i++)
cout << arr[i] << " ";
return 0;
}
s = input()
alp = [0 for i in range(26)]
for ch in s:
alp[ord(ch)-ord('a')] += 1
print(' '.join(map(str, alp)))
'백준 1 > 기초' 카테고리의 다른 글
| [백준 1316] 그룹 단어 체커 (C++/Python) (0) | 2020.12.05 |
|---|---|
| [백준 10824] 네 수 (C++/Python) (0) | 2020.12.05 |
| [백준 11655] ROT 13 (C++/Python) (0) | 2020.12.05 |
| [백준 2743] 단어 길이 재기 (C++/Python) (0) | 2020.12.05 |
| [백준 10886] 0 = not cute / 1 = cute (C++/Python) (0) | 2020.12.05 |