import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (sc.hasNextLine()) { String s1 = sc.nextLine(); String s2 = sc.nextLine(); StringBuilder sb = new StringBuilder(); int i = s1.length() - 1, j = s2.length() - 1, res = 0; ...