import java.io.*;
import java.util.*;

public class Main {

	/**
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args){

        Scanner s = null;
        String message = "";

        try {
            s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));

            while (s.hasNext()) {
                message += s.next();
            }
        } finally {
            if (s != null) {
                s.close();
            }
        }
		char[] chars = message.toCharArray();
		Arrays.sort(chars);
		ArrayList<Character> chars_arraylist = new ArrayList<Character>();
		for(int i = 0; i < chars.length; i++){
			chars_arraylist.add(chars[i]);
		}
		String alphabet = "abcdefghijklmnopqrstuvwxyz";
		for(int i=0; i < alphabet.length(); i++){
			Character c = alphabet.charAt(i);
			System.out.println(c +  " : " + get_count(chars_arraylist, c));
		}
	}

	private static Integer get_count(ArrayList<Character> chars_arraylist, Character c){
			Integer count = 0;
		if(chars_arraylist.indexOf(c) != -1){
			count = count + chars_arraylist.lastIndexOf(c) + 1 - chars_arraylist.indexOf(c);
		}
		Character upper_c = Character.toUpperCase(c);
		if(chars_arraylist.indexOf(upper_c) != -1){
			count = count + chars_arraylist.lastIndexOf(upper_c) + 1 - chars_arraylist.indexOf(upper_c);
		}
		return count;
	}

} import java.io.*; io.* java import java.util.*; util.* java public class Main {

	/**
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args){

        Scanner s = null;
        String message = "";

        try {
            s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));

            while (s.hasNext()) {
                message += s.next();
            }
        } finally {
            if (s != null) {
                s.close();
            }
        }
		char[] chars = message.toCharArray();
		Arrays.sort(chars);
		ArrayList<Character> chars_arraylist = new ArrayList<Character>();
		for(int i = 0; i < chars.length; i++){
			chars_arraylist.add(chars[i]);
		}
		String alphabet = "abcdefghijklmnopqrstuvwxyz";
		for(int i=0; i < alphabet.length(); i++){
			Character c = alphabet.charAt(i);
			System.out.println(c +  " : " + get_count(chars_arraylist, c));
		}
	}

	private static Integer get_count(ArrayList<Character> chars_arraylist, Character c){
			Integer count = 0;
		if(chars_arraylist.indexOf(c) != -1){
			count = count + chars_arraylist.lastIndexOf(c) + 1 - chars_arraylist.indexOf(c);
		}
		Character upper_c = Character.toUpperCase(c);
		if(chars_arraylist.indexOf(upper_c) != -1){
			count = count + chars_arraylist.lastIndexOf(upper_c) + 1 - chars_arraylist.indexOf(upper_c);
		}
		return count;
	}

} Main /**
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args){

        Scanner s = null;
        String message = "";

        try {
            s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));

            while (s.hasNext()) {
                message += s.next();
            }
        } finally {
            if (s != null) {
                s.close();
            }
        }
		char[] chars = message.toCharArray();
		Arrays.sort(chars);
		ArrayList<Character> chars_arraylist = new ArrayList<Character>();
		for(int i = 0; i < chars.length; i++){
			chars_arraylist.add(chars[i]);
		}
		String alphabet = "abcdefghijklmnopqrstuvwxyz";
		for(int i=0; i < alphabet.length(); i++){
			Character c = alphabet.charAt(i);
			System.out.println(c +  " : " + get_count(chars_arraylist, c));
		}
	} main {

        Scanner s = null;
        String message = "";

        try {
            s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));

            while (s.hasNext()) {
                message += s.next();
            }
        } finally {
            if (s != null) {
                s.close();
            }
        }
		char[] chars = message.toCharArray();
		Arrays.sort(chars);
		ArrayList<Character> chars_arraylist = new ArrayList<Character>();
		for(int i = 0; i < chars.length; i++){
			chars_arraylist.add(chars[i]);
		}
		String alphabet = "abcdefghijklmnopqrstuvwxyz";
		for(int i=0; i < alphabet.length(); i++){
			Character c = alphabet.charAt(i);
			System.out.println(c +  " : " + get_count(chars_arraylist, c));
		}
	} Scanner s = null; s null String message = ""; message "" try {
            s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));

            while (s.hasNext()) {
                message += s.next();
            }
        } finally {
            if (s != null) {
                s.close();
            }
        } {
            if (s != null) {
                s.close();
            }
        } if (s != null) {
                s.close();
            } s != null s null {
                s.close();
            } s.close() s.close s {
            s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));

            while (s.hasNext()) {
                message += s.next();
            }
        } s = new Scanner(new BufferedReader(new InputStreamReader(System.in))) s new Scanner(new BufferedReader(new InputStreamReader(System.in))) while (s.hasNext()) {
                message += s.next();
            } s.hasNext() s.hasNext s {
                message += s.next();
            } message += s.next() message s.next() s.next s char[] chars = message.toCharArray(); chars message.toCharArray() message.toCharArray message Arrays.sort(chars) Arrays.sort Arrays chars ArrayList<Character> chars_arraylist = new ArrayList<Character>(); chars_arraylist new ArrayList<Character>() for(int i = 0; i < chars.length; i++){
			chars_arraylist.add(chars[i]);
		} int i = 0; int i = 0; i 0 i < chars.length i chars.length chars chars.length i++ i++ i {
			chars_arraylist.add(chars[i]);
		} {
			chars_arraylist.add(chars[i]);
		} chars_arraylist.add(chars[i]) chars_arraylist.add chars_arraylist chars[i] chars i String alphabet = "abcdefghijklmnopqrstuvwxyz"; alphabet "abcdefghijklmnopqrstuvwxyz" for(int i=0; i < alphabet.length(); i++){
			Character c = alphabet.charAt(i);
			System.out.println(c +  " : " + get_count(chars_arraylist, c));
		} int i=0; int i=0; i 0 i < alphabet.length() i alphabet.length() alphabet.length alphabet i++ i++ i {
			Character c = alphabet.charAt(i);
			System.out.println(c +  " : " + get_count(chars_arraylist, c));
		} {
			Character c = alphabet.charAt(i);
			System.out.println(c +  " : " + get_count(chars_arraylist, c));
		} Character c = alphabet.charAt(i); c alphabet.charAt(i) alphabet.charAt alphabet i System.out.println(c +  " : " + get_count(chars_arraylist, c)) System.out.println System.out System System.out c +  " : " + get_count(chars_arraylist, c) c +  " : " + get_count(chars_arraylist, c) c " : " get_count(chars_arraylist, c) get_count chars_arraylist c String[] args args private static Integer get_count(ArrayList<Character> chars_arraylist, Character c){
			Integer count = 0;
		if(chars_arraylist.indexOf(c) != -1){
			count = count + chars_arraylist.lastIndexOf(c) + 1 - chars_arraylist.indexOf(c);
		}
		Character upper_c = Character.toUpperCase(c);
		if(chars_arraylist.indexOf(upper_c) != -1){
			count = count + chars_arraylist.lastIndexOf(upper_c) + 1 - chars_arraylist.indexOf(upper_c);
		}
		return count;
	} get_count {
			Integer count = 0;
		if(chars_arraylist.indexOf(c) != -1){
			count = count + chars_arraylist.lastIndexOf(c) + 1 - chars_arraylist.indexOf(c);
		}
		Character upper_c = Character.toUpperCase(c);
		if(chars_arraylist.indexOf(upper_c) != -1){
			count = count + chars_arraylist.lastIndexOf(upper_c) + 1 - chars_arraylist.indexOf(upper_c);
		}
		return count;
	} Integer count = 0; count 0 if(chars_arraylist.indexOf(c) != -1){
			count = count + chars_arraylist.lastIndexOf(c) + 1 - chars_arraylist.indexOf(c);
		} chars_arraylist.indexOf(c) != -1 chars_arraylist.indexOf(c) chars_arraylist.indexOf chars_arraylist c -1 1 {
			count = count + chars_arraylist.lastIndexOf(c) + 1 - chars_arraylist.indexOf(c);
		} count = count + chars_arraylist.lastIndexOf(c) + 1 - chars_arraylist.indexOf(c) count count + chars_arraylist.lastIndexOf(c) + 1 - chars_arraylist.indexOf(c) count + chars_arraylist.lastIndexOf(c) + 1 count + chars_arraylist.lastIndexOf(c) + 1 count chars_arraylist.lastIndexOf(c) chars_arraylist.lastIndexOf chars_arraylist c 1 chars_arraylist.indexOf(c) chars_arraylist.indexOf chars_arraylist c Character upper_c = Character.toUpperCase(c); upper_c Character.toUpperCase(c) Character.toUpperCase Character c if(chars_arraylist.indexOf(upper_c) != -1){
			count = count + chars_arraylist.lastIndexOf(upper_c) + 1 - chars_arraylist.indexOf(upper_c);
		} chars_arraylist.indexOf(upper_c) != -1 chars_arraylist.indexOf(upper_c) chars_arraylist.indexOf chars_arraylist upper_c -1 1 {
			count = count + chars_arraylist.lastIndexOf(upper_c) + 1 - chars_arraylist.indexOf(upper_c);
		} count = count + chars_arraylist.lastIndexOf(upper_c) + 1 - chars_arraylist.indexOf(upper_c) count count + chars_arraylist.lastIndexOf(upper_c) + 1 - chars_arraylist.indexOf(upper_c) count + chars_arraylist.lastIndexOf(upper_c) + 1 count + chars_arraylist.lastIndexOf(upper_c) + 1 count chars_arraylist.lastIndexOf(upper_c) chars_arraylist.lastIndexOf chars_arraylist upper_c 1 chars_arraylist.indexOf(upper_c) chars_arraylist.indexOf chars_arraylist upper_c return count; count ArrayList<Character> chars_arraylist chars_arraylist Character c c public class Main {

	/**
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args){

        Scanner s = null;
        String message = "";

        try {
            s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));

            while (s.hasNext()) {
                message += s.next();
            }
        } finally {
            if (s != null) {
                s.close();
            }
        }
		char[] chars = message.toCharArray();
		Arrays.sort(chars);
		ArrayList<Character> chars_arraylist = new ArrayList<Character>();
		for(int i = 0; i < chars.length; i++){
			chars_arraylist.add(chars[i]);
		}
		String alphabet = "abcdefghijklmnopqrstuvwxyz";
		for(int i=0; i < alphabet.length(); i++){
			Character c = alphabet.charAt(i);
			System.out.println(c +  " : " + get_count(chars_arraylist, c));
		}
	}

	private static Integer get_count(ArrayList<Character> chars_arraylist, Character c){
			Integer count = 0;
		if(chars_arraylist.indexOf(c) != -1){
			count = count + chars_arraylist.lastIndexOf(c) + 1 - chars_arraylist.indexOf(c);
		}
		Character upper_c = Character.toUpperCase(c);
		if(chars_arraylist.indexOf(upper_c) != -1){
			count = count + chars_arraylist.lastIndexOf(upper_c) + 1 - chars_arraylist.indexOf(upper_c);
		}
		return count;
	}

} public class Main {

	/**
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args){

        Scanner s = null;
        String message = "";

        try {
            s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));

            while (s.hasNext()) {
                message += s.next();
            }
        } finally {
            if (s != null) {
                s.close();
            }
        }
		char[] chars = message.toCharArray();
		Arrays.sort(chars);
		ArrayList<Character> chars_arraylist = new ArrayList<Character>();
		for(int i = 0; i < chars.length; i++){
			chars_arraylist.add(chars[i]);
		}
		String alphabet = "abcdefghijklmnopqrstuvwxyz";
		for(int i=0; i < alphabet.length(); i++){
			Character c = alphabet.charAt(i);
			System.out.println(c +  " : " + get_count(chars_arraylist, c));
		}
	}

	private static Integer get_count(ArrayList<Character> chars_arraylist, Character c){
			Integer count = 0;
		if(chars_arraylist.indexOf(c) != -1){
			count = count + chars_arraylist.lastIndexOf(c) + 1 - chars_arraylist.indexOf(c);
		}
		Character upper_c = Character.toUpperCase(c);
		if(chars_arraylist.indexOf(upper_c) != -1){
			count = count + chars_arraylist.lastIndexOf(upper_c) + 1 - chars_arraylist.indexOf(upper_c);
		}
		return count;
	}

} Main
import java.io.*;
import java.util.*;

public class Main {

	/**
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args){

        Scanner s = null;
        String message = "";

        try {
            s = new Scanner(new BufferedReader(new InputStreamReader(System.in)));

            while (s.hasNext()) {
                message += s.next();
            }
        } finally {
            if (s != null) {
                s.close();
            }
        }
		char[] chars = message.toCharArray();
		Arrays.sort(chars);
		ArrayList<Character> chars_arraylist = new ArrayList<Character>();
		for(int i = 0; i < chars.length; i++){
			chars_arraylist.add(chars[i]);
		}
		String alphabet = "abcdefghijklmnopqrstuvwxyz";
		for(int i=0; i < alphabet.length(); i++){
			Character c = alphabet.charAt(i);
			System.out.println(c +  " : " + get_count(chars_arraylist, c));
		}
	}

	private static Integer get_count(ArrayList<Character> chars_arraylist, Character c){
			Integer count = 0;
		if(chars_arraylist.indexOf(c) != -1){
			count = count + chars_arraylist.lastIndexOf(c) + 1 - chars_arraylist.indexOf(c);
		}
		Character upper_c = Character.toUpperCase(c);
		if(chars_arraylist.indexOf(upper_c) != -1){
			count = count + chars_arraylist.lastIndexOf(upper_c) + 1 - chars_arraylist.indexOf(upper_c);
		}
		return count;
	}

}