import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String str = scan.nextLine(); int z = str.indexOf(" "); String a = str.substring(0, z); String b = str.substring(z + 1, str.length...