Medium
Words by Length
Read a sentence and print how many words have each length, from shortest to longest:
3: 2.Input
One line.
Output
One line per length.
Sample 1
Input
the cat sat on a mat
Output
1: 1 2: 1 3: 4
Sample 2
Input
hello
Output
5: 1
Output appears here