class fun
{
public static void main(String[] args)
{
String str="java is an object oriented programming language";
String[] strs = str.split(" ");
int sum = 0;
for(int i=0;i<strs.length;i++)
{
sum += strs[i].length();
System.out.println(strs[i]+" ");
}
}
}