#include <string>
#include <iostream>
using namespace std;
string INSTR = "";
int NUM[10]{0,0,0,0,0,0,0,0,0,0};
void GetEveNum();
void OutRes();
int main()
{
cin >> INSTR;
GetEveNum();
OutRes();
return 0;
}
void GetEveNum()
{
for(size_t i = 0; i < INSTR.length(); ++i)
{
NUM[INSTR[i] - '0'] += 1;
}
}
void OutRes()
{
for(size_t i = 0; i < 10; ++i)
{
if(0 == NUM[i])
{
continue;
}
else
{
cout << i << ":" << NUM[i] <<endl;
}
}
}
04-24
337