#include<iostream>
#include<string>
#include<vector>
#include<map>
using namespace std;
int main()
{
string n;
cin >> n;
map<char, unsigned> number_count;
for (auto &r : n)
{
number_count[r]++;
}
size_t i = 0;
size_t count = number_count.size();
for (auto &r : number_count)
{
if(i<(count-1))
cout << r.first << ":" << r.second << endl;
else
{
cout << r.first << ":" << r.second;
}
}
cout << endl;
system("pause");
return 0;
}







网友评论