import java.io.*; public class Tekst1{ public static void main(String[] argumendid) throws IOException{ BufferedReader sisse=new BufferedReader(new InputStreamReader(System.in)); System.out.println("Palun lause:"); String lause=sisse.readLine(); System.out.println(lause.length()+ " tahte, esimene: "+lause.charAt(0)); String[] m=lause.split(" "); System.out.println(m.length+" sona. Esimene: "+m[0]+", viimane "+m[m.length-1]); //Trüki lause sõnad tagurpidises järjekorras } }