

実行時間制限: 1 sec / メモリ制限: 512 MB
配点 : 300 点
問題文
N 個のマスに区切られた細長い紙切れの上でゲームを行います。マスには 1 から N までの番号が順に付けられています。
アリスの駒はマス A に、ボリスの駒は別のマス B に置かれています。
二人にはターンが交互に訪れます。アリスが先手です。 ターンが回ってきたプレイヤーは、自分の駒を現在のマス X から左隣のマス X-1 か右隣のマス X+1 のどちらかに動かさなければなりません。 ただし、駒を紙切れの外に出したり、相手の駒と同じマスに動かしてはいけません。 また、駒の移動は一ターンに一度だけ行わなければなりません。
駒を動かせなくなった人が負けで、相手の勝ちとなります。
二人とも、勝ちたいと思っています。二人とも最適にプレイするとき、どちらが勝つでしょうか?
制約
- 2 \leq N \leq 100
- 1 \leq A < B \leq N
- 入力値はすべて整数である。
入力
入力は標準入力から以下の形式で与えられる。
N A B
出力
アリスが勝つ場合は Alice
、ボリスが勝つ場合は Borys
、どちらも勝つことができないなら Draw
と出力せよ。
入力例 1
5 2 4
出力例 1
Alice
アリスは駒をマス 3 に動かせます。 すると、ボリスは駒をマス 3 に動かすことができなくなり、マス 5 に動かすほかなくなります。 そして、アリスが駒をマス 4 に動かすと、ボリスは駒を動かせなくなり負けます。
入力例 2
2 1 2
出力例 2
Borys
アリスは最初のターンで駒を動かせず負けます。
入力例 3
58 23 42
出力例 3
Borys
Score : 300 points
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.
Sample Input 1
5 2 4
Sample 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.
Sample Input 2
2 1 2
Sample Output 2
Borys
Alice can't make the very first move and loses.
Sample Input 3
58 23 42
Sample Output 3
Borys