Types: a1: int, a2: int, a3: int, a4: int, b1: int, b2: int, b3: int, b4: int
Ranges: 0 ≤ a1, a2, a3, a4, b1, b2, b3, b4 ≤ 9
Addtl Info: All values of a1, a2, a3, a4 are distinct; All values of b1, b2, b3, b4 are distinct; Number of datasets ≤ 50