Codeforces Round 814 (Div. 2)
A
Chip Game
Codeforces
800
原题
←B →
翻译中…

Burenka and Tonya are playing an old Buryat game with a chip on a board of $n \times m$ cells.

翻译中…

At the beginning of the game, the chip is located in the lower left corner of the board. In one move, the player can move the chip to the right or up by any odd number of cells (but you cannot move the chip both to the right and up in one move). The one who cannot make a move loses.

翻译中…

Burenka makes the first move, the players take turns. Burenka really wants to win the game, but she is too lazy to come up with a strategy, so you are invited to solve the difficult task of finding it. Name the winner of the game (it is believed that Burenka and Tonya are masters of playing with chips, so they always move in the optimal way).

翻译中…

image Chip's starting cell is green, the only cell from which chip can't move is red. if the chip is in the yellow cell, then blue cells are all options to move the chip in one move.

翻译中…

Input

翻译中…

The first line contains one integer $t$ ($1 \leq t \leq 10^4$) — the number of test cases. The following is a description of the input data sets.

翻译中…

The only line of each test case contains two integers $n$ and $m$ ($1 \leq n, m \leq 10^9$) — the dimensions of the game board.

翻译中…

Output

翻译中…

For each test case print a single line — the name of the winner of the game ("Burenka" or "Tonya").

翻译中…

Note

翻译中…

In the first case, Burenka has no move, so Tonya wins.

翻译中…

In the second case, Burenka can move $3$ cells to the right, after which Tony will not be able to make a move, which means that Burenka wins.

翻译中…

In the third case, Burenka can move $5$ squares to the right. Then we can say that we have a game on a board of $1 \times 5$ cells, and Tonya is the first player. In such game the second player wins, so in the original one Burenka will win.

翻译中…

样例

Input #1
6
1 1
1 4
5 6
2 2
6 3
999999999 1000000000
Output #1
Tonya
Burenka
Burenka
Tonya
Burenka
Burenka
InputCopy OutputCopy
题目信息
题号
1719A
时间限制
1 s
内存限制
256 MB
标签
博弈论
数学

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