n = int(input())
for i in range(n):
    a, b = map(int, input().split())
    if(a % 2 == 1 and b % 2 == 0 and a+b>=10):
        print("OPEN")
    else:
        print("CLOSED")

cb7f79fba68c4cd0c8e2ac08de84086e9157e2d1
<mask token>

<mask token>
for i in range(n):
    a, b = map(int, input().split())
    if a % 2 == 1 and b % 2 == 0 and a + b >= 10:
        print('OPEN')
    else:
        print('CLOSED')

n = int(input())
for i in range(n):
    a, b = map(int, input().split())
    if a % 2 == 1 and b % 2 == 0 and a + b >= 10:
        print('OPEN')
    else:
        print('CLOSED')

n = int(input())
for i in range(n):
    a, b = map(int, input().split())
    if(a % 2 == 1 and b % 2 == 0 and a+b>=10):
        print("OPEN")
    else:
        print("CLOSED")
