#P1784. 单词识别

单词识别

Description

输入一行英文句子,统计句子中出现的各个单词(不区分大小写)及其出现次数。

Input Format

共一行,包含一个长度不超过1000的字符串,以 . 结尾。

Output Format

按字典顺序,输出每个单词及其出现次数。

单词在输出时,应将字母全部转化为小写。

每个单词的输出占一行。

具体格式请对照样例输出。

A blockhouse is a small castle that has four openings through which to shoot.​
a:2
blockhouse:1
castle:1
four:1
has:1
is:1
openings:1
shoot:1
small:1
that:1
through:1
to:1
which:1