#P401. 练69.1 单词的长度

练69.1 单词的长度

Description

Given a sequence of words separated by one or more spaces, calculate the length of each word.
Note that if there are punctuation marks (such as hyphens, commas, periods), they are considered part of the word they are attached to. Any sequence of symbols not separated by spaces is considered a word.

Input Format

One line containing a sequence of words, with a minimum of 11 word and a maximum of 300300 words, separated by at least 11 space. The total length of the word sequence does not exceed 10001000.

Output Format

Output the length of each word in order, separated by commas.

Sample

She was born in 1990-01-02  and  from Beijing city.
3,3,4,2,10,3,4,7,5