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 lause=sisse.readLine(); StringTokenizer st=new StringTokenizer(lause, " "); while(st.hasMoreTokens()){ String sona=st.nextToken(); if(sona.startsWith("a"))System.out.println(sona); } } }