import java.util.*; public class Main{ private static char[] array={'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'}; public static void main(String[] args){ Scanner input = new Scanner(System.in); while(input.hasNext()){ String str1 = input.next()...