Java/Java_String_Tokens.java
import java.io.*;
import java.util.*;

public class Solution {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String s = scan.nextLine();
        s = s.trim();
        
        if(s.length() == 0){
            System.out.println(0);
            return;
        }
        
        String[] words = s.split("[^a-zA-Z]+");
        System.out.println(words.length);
        
        for(String word:words){
            System.out.println(word);
        }
        scan.close();
    }
}
