#include <bits/stdc++.h>
using namespace std;
char a[100001];
int b[26];
int main()
{
for( int i = 0 ; i < 100001 ; i ++ )
{
cin >> a[i];
b[(int)a[i]] ++;
}
for( int i = 97 ; i <= 123 ; i ++ )
{
if(b[i] == 0) continue;
else
cout << (char)i << ':' << b[i] << endl;
}
return 0;
}