import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner in = new Scanner(System.in); String str = in.nextLine(); String []a = str.split("[ ]"); int c = Integer.parseInt(a[0].substring(2,a[0].length()),16); int d = Integer.parseInt(a[1].substring(1,a[1].length()),...