欢迎来到起遇信息学
起遇信息学正处于上线筹建阶段,以下功能已全部开放免费体验: ✅ 完整题库浏览与代码提交评测(C / C++ / Python / Java 等) ✅ 入门到进阶的系列课程试读、作业与考试 ✅ AI 提示、AI 作业分析等智能助教功能 ✅ 赛事模拟与个人能力报告 ✅ 邮箱注册开放 ⏳ 付费课程订阅与微信/支付宝支付通道 ⏳ 手机号登录,微信扫码登录、微信公众号绑定 使用中如遇任何问题,欢迎通过页面底部 **"联系我们"** 与我们沟通。
CF1075A.The King's Race
The King's Race
On a chessboard with a width of and a height of , rows are numbered from bottom to top from to , columns are numbered from left to right from to . Therefore, for each cell of the chessboard, you can assign the coordinates , where is the number of the row, and is the number of the column.
The white king has been sitting in a cell with coordinates for a thousand years, while the black king has been sitting in a cell with coordinates. They would have sat like that further, but suddenly a beautiful coin fell on the cell with coordinates ...
Each of the monarchs wanted to get it, so they decided to arrange a race according to slightly changed chess rules:
As in chess, the white king makes the first move, the black king makes the second one, the white king makes the third one, and so on. However, in this problem, kings can stand in adjacent cells or even in the same cell at the same time.
The player who reaches the coin first will win, that is to say, the player who reaches the cell with the coordinates first will win.
Let's recall that the king is such a chess piece that can move one cell in all directions, that is, if the king is in the cell, then in one move he can move from to the cells , , , , , , , or . Going outside of the field is prohibited.
Determine the color of the king, who will reach the cell with the coordinates first, if the white king moves first.
Input
The first line contains a single integer () — the length of the side of the chess field.
The second line contains two integers and () — coordinates of the cell, where the coin fell.
Output
In a single line print the answer "White" (without quotes), if the white king will win, or "Black" (without quotes), if the black king will win.
You can print each letter in any case (upper or lower).
Note
An example of the race from the first sample where both the white king and the black king move optimally:
- The white king moves from the cell into the cell .
- The black king moves form the cell into the cell .
- The white king moves from the cell into the cell . This is cell containing the coin, so the white king wins.

An example of the race from the second sample where both the white king and the black king move optimally:
- The white king moves from the cell into the cell .
- The black king moves form the cell into the cell .
- The white king moves from the cell into the cell .
- The black king moves from the cell into the cell . This is the cell, where the coin fell, so the black king wins.

In the third example, the coin fell in the starting cell of the black king, so the black king immediately wins.

Samples
4
2 3
White
5
3 5
Black
2
2 2
Black
在线编程 IDE
建议全屏模式获得最佳体验
| 进入全屏编程 | Alt+E |
| 递交评测 | Ctrl+Enter |
| 注释/取消注释 | Ctrl+/ |
| 缩放字体 | Ctrl+滚轮 |