import java.util.Scanner; public class Main{ public static void main(String[] srgs){ Scanner scanner = new Scanner(System.in); String str= scanner.nextLine(); str= str.replaceAll("[^a-zA-Z]"," "); String[] strings = str.trim().split("\\s+"); for(int i=strin...