import java.io.*; import java.util.StringTokenizer; public class Lause{ public static void main(String argumendid[]) throws IOException{ BufferedReader sisse=new BufferedReader( new InputStreamReader(System.in)); System.out.println("Palun lause:"); String rida=sisse.readLine(); StringTokenizer st=new StringTokenizer(rida, " "); int arv=0; System.out.println(); System.out.println("S6nad:"); System.out.println(); while(st.hasMoreTokens()){ String sona=st.nextToken(); System.out.println(sona); arv++; } System.out.println(); System.out.println(arv+" s6na!"); } }