import java.util.Scanner;
public class TextCiShu1
{
public static void main(String[] args){
Scanner b = new Scanner(System.in);
String a = b.next();
int[] count1 = new int[26];
int[] count2 = new int[26];
char[] c = a.toCharArray();
for (int i=0;i<a.length() ;i++ )
{
if (c[i]>='A'&&c[i]<='Z'){
count1[(int)(c[i]-65)]++;
}
if(c[i]>='a'&&c[i]<='z') {
count2[(int)(c[i]-97)]++;
}
}
for (int i=0;i<26 ;i++ )
{
if (count1[i] != 0)
{
System.out.println((char)(i+65)+"="+count1[i]);
}
if (count2[i] != 0)
{
System.out.println((char)(i+97)+"="+count2[i]);
}
}
}
}
public class TextCiShu1
{
public static void main(String[] args){
Scanner b = new Scanner(System.in);
String a = b.next();
int[] count1 = new int[26];
int[] count2 = new int[26];
char[] c = a.toCharArray();
for (int i=0;i<a.length() ;i++ )
{
if (c[i]>='A'&&c[i]<='Z'){
count1[(int)(c[i]-65)]++;
}
if(c[i]>='a'&&c[i]<='z') {
count2[(int)(c[i]-97)]++;
}
}
for (int i=0;i<26 ;i++ )
{
if (count1[i] != 0)
{
System.out.println((char)(i+65)+"="+count1[i]);
}
if (count2[i] != 0)
{
System.out.println((char)(i+97)+"="+count2[i]);
}
}
}
}