#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 word and a maximum of words, separated by at least space. The total length of the word sequence does not exceed .
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