Types: a1: int, a2: int, a3: int, a4: int, b1: int, b2: int, b3: int, b4: int

Ranges: 0 ≤ a1, a2, a3, a4 ≤ 9; 0 ≤ b1, b2, b3, b4 ≤ 9

Addtl Info: The four numbers in each of A's and B's sets are all different. The number of datasets is less than or equal to 50.