import java.io.*; import java.util.StringTokenizer; public class Asona2{ 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, " "); while(st.hasMoreTokens()){ String sona=st.nextToken(); if(sona.startsWith("a"))System.out.println(sona); } } }