#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; map<char, int> hash; for (auto c : s) hash[c]++; for (auto c : hash) cout << c.first << ':' << c.second << endl; return 0; }