n,a,b=list(map(int,input().split()))

if abs(a-b)%2==0:

    ans="Alice"

else:

    ans="Borys"

print(ans)

n,a,b=list(map(int,input().split()))

if abs(a-b)&1:

    print("Borys")

else:

    print("Alice")

n, a, b = list(map(int, input().split()))
if abs(a - b) % 2 == 0:
    ans = "Alice"
else:
    ans = "Borys"
print(ans)

n, a, b = list(map(int, input().split()))
if abs(a - b) & 1:
    print("Borys")
else:
    print("Alice")

-if abs(a - b) % 2 == 0: -    ans = "Alice" +if abs(a - b) & 1: +    print("Borys") -    ans = "Borys" -print(ans) +    print("Alice")