package hello;
import java.util.Scanner;
/**
* @author yellowopen
* 2017年7月4日
*/
public class test1 {
public static void count(String s)
{
String[] str=s.split(" ");
int length=str.length;
for(int i =0 ;i<str.length;i++)
{
System.out.print(str[i].length()+" ");
}
}
public static void main(String[] args) {
// TODO Auto-generated method stub
// 输入句子,数句子中的单词长度
Scanner in=new Scanner(System.in);
String s = in.nextLine();
count(s);
}}