i = 1
j = 7
while i <= 9:
    while j >= 5:
        print(f"I={i} J={j}")
        j -= 1
    i += 2
    j = 7

i = 1
j = 7
while i <= 9:
    while j >= 5:
        print(f"I={i} J={j}")
        j -= 1
    i += 2
    j = 7
