public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String line = scanner.nextLine();
//hashMap的使用
Map<Character, Integer> map = new LinkedHashMap<Character, Integer>();
//遍历字符串
int i;
for(i=0;i<=line.length()-1;i++){
char ch=line.charAt(i);
//判断是否为字母
if(ch>='a'&&ch<='z'||ch>='A'&&ch<='Z'){
//如果哈希表中存在该字符
if(map.containsKey(ch)==true){
//将哈希表中的该字符数+1
map.put(ch,map.get(ch)+1);
}
//哈希表中不存在该字符
else{
//将该字符加入哈希表
map.put(ch,1);
}
}
}
//write your code here......
Set<Map.Entry<Character, Integer>> entrys = map.entrySet();
for (Map.Entry<Character, Integer> entry : entrys) {
System.out.println(entry.getKey() + ":" + entry.getValue());
}
}
}