123456
x,y∈ℤ 1≤x≤2^500 1≤y≤2^500 x>y
1234567891011
1^1 through 1^500 and 2^1 through 2^500 and 2^1 through 1^500 1^500 through 2^500