Types: N: int, A: List[int], B: List[int]
Ranges: 1 ≤ N ≤ 18, 1 ≤ A[i], B[i] ≤ 50 (1 ≤ i ≤ N)
Addtl Info: All values in input are integers.