import java.util.*; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); while (scanner.hasNext()) { String str1 = scanner.nextLine(); String str2 = scanner.nextLine(); if (str1.length() > ...