1863: 【CSP字符】字符统计▅

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:2 Solved:2

Description

输入一串小写字母(以.为结束标志),统计出每个字母在该字符串中出现的次数(若某字母不出现,则不要输出)。

要求:每行输出 lns="http://www.w3.org/1998/Math/MathML">5 项,每项以空格隔开。

Input

输入一行以 . 结束的字符串(字符串长度lns="http://www.w3.org/1998/Math/MathML">105)。

Output

输出相应小写字母的个数。

Sample Input Copy

aabbccdxyz.

Sample Output Copy

a:2 b:2 c:2 d:1 x:1
y:1 z:1