Consider a sequence of words formed by letters. The words are separated with dashes, which can appear also at the beginning and in the end of the sequence. The sequence ends with a dot.
Your task is to write a program that prints the number of short words (less than five letters), medium (between five and nine letters), and long (more than nine letters).
Input
The input consists of a line with letters and dashes, finished with a dot.
Output
Your program must print a line with the number of short, medium and long words separated by commas.
Observation
Using |strings| is not allowed in this problem.
Input
.
Output
0,0,0
Input
-----abcde-.
Output
0,1,0
Input
aaabbbccc.
Output
0,1,0
Input
----------------.
Output
0,0,0
Input
easy--to-solve-problem----.
Output
2,2,0
Input
-be-careful---repeated-dashes-and-final-word.
Output
3,4,0