Types: A: List[int], B: List[int]
Ranges: 0 ≤ A[i] ≤ 9, 0 ≤ B[i] ≤ 9, |A| = 4, |B| = 4
Addtl Info: EOF-terminated, number of datasets ≤ 50