1484: 单词统计

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

Description

有这样的一种单词统计方式,具体如下:

提示用户,让用户输入一串英文文本,文本中只会出现单词、空格、 英文逗号、英文句号,统计所有出现的单词的出现个数。

Input

输入一串英文文本

Output

每行输出打印格式如下:单词:数量

Sample Input Copy

enjoy working happy laughter, enjoy friends enjoy the warmth of family. enjoy the joy to create.

Sample Output Copy

enjoy:4
working:1
happy:1
laughter:1
friends:1
the:2
warmth:1
of:1
family:1
joy:1
to:1
create:1