#include<iostream>
#include<cstdio>
#include<cstring>
#include<cstdlib>
#include<algorithm>
using namespace std;
int a[500];
char c;
int main()
{
freopen("KZhomeworkillu.in","r",stdin);
freopen("KZhomeworkillu.out","w",stdout);
while (scanf("%c",&c)==1)
{
if ((c>='A'&&c<='Z')||(c>='a'&&c<='z'))
{
a[int(c)]++;
}
}
for (int i=64;i<=130;++i)
if (a[i]!=0)
cout<<char(i)<<":"<<a[i]<<endl;
return 0;
}