#include using namespace std; int main() { bool solution; string x; cin >> x; int c[26]; for (int i = 0; i < x.length(); i++) { c[(int)x.at(i) - 48]++; } for (int i : c) cout << i << " "; }