public class Solution {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String str = sc.nextLine().replaceAll("\\s*","");
printLetterNum(str);
}
public static void printLetterNum(String str) {
//按照字符在字符串中的位置排序
Map<Character, Integer> maps = new LinkedHashMap<>();
//按照自然顺序排序
//SortedMap<Character, Integer> maps = new TreeMap<>();
for (int i = 0; i < str.length(); i++) {
if (!Character.isDigit(str.charAt(i))) {
if (maps.containsKey(str.charAt(i))) {
maps.put(str.charAt(i), maps.get(str.charAt(i)) + 1);
} else {
maps.put(str.charAt(i), 1);
}
}
}
for (Map.Entry<Character, Integer> entry : maps.entrySet()) {
System.out.println(entry.getKey() + ":" + entry.getValue());
}
}
}