Types: n: int, i: int, j: int
Ranges: 1 ≤ n ≤ 60, 1 ≤ i ≤ 2^n, 1 ≤ j ≤ 2^n
Addtl Info: Input consists of at most 100 datasets, each being a line containing three integers, terminated by a line with three zeros (0 0 0).