#include <iostream>
#include <string>
using namespace std;

int alp[26];
int main() {
    ios::sync_with_stdio(0);
    cin.tie(0);
    string s;
    cin >> s;

    for(auto c:s) {
        alp[c-'a']++;
    }
    for(int i=0; i<26; i++) {
        cout << alp[i] << ' ';
    }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: