public class Main { public static int m = 0, n = 0; public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextLine().split(" ").length; int b = sc.nextLine().split(" ").length; n = a + b; m = a +...