import java.util.; import java.util.regex.;public class Main{ public static void main(String[] arg){ Scanner sc = new Scanner(System.in); String s = sc.nextLine(); char[] array = s.toCharArray(); int x = 0,y=0,z=0,j=0; for (char c : array) { if (Character.isLetter(c)){ ...