AtCoder Grand Contest 020
A
Move and Win
AtCoder
⌀ 0
原题
←B →
翻译中…

Problem Statement

翻译中…

A game is played on a strip consisting of $N$ cells consecutively numbered from 1 to $N$.

翻译中…

Alice has her token on cell $A$. Borys has his token on a different cell $B$.

翻译中…

Players take turns, Alice moves first. The moving player must shift his or her token from its current cell $X$ to the neighboring cell on the left, cell $X-1$, or on the right, cell $X+1$. Note that it's disallowed to move the token outside the strip or to the cell with the other player's token. In one turn, the token of the moving player must be shifted exactly once.

翻译中…

The player who can't make a move loses, and the other player wins.

翻译中…

Both players want to win. Who wins if they play optimally?

翻译中…

Constraints

翻译中…
  • $2 \leq N \leq 100$
  • $1 \leq A < B \leq N$
  • All input values are integers.
翻译中…

Input

翻译中…

Input is given from Standard Input in the following format:

翻译中…

N A B

翻译中…

Output

翻译中…

Print Alice if Alice wins, Borys if Borys wins, and Draw if nobody wins.

翻译中…

样例

Input #1
5 2 4
Output #1
Alice
Alice can move her token to cell 3. After that, Borys will be unable to move his token to cell 3, so he will have to move his token to cell 5. Then, Alice moves her token to cell 4. Borys can't make a move and loses.
Input #2
2 1 2
Output #2
Borys
Alice can't make the very first move and loses.
Input #3
58 23 42
Output #3
Borys
题目信息
题号
agc020_a
时间限制
1 s
内存限制
512 MB

题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。