Medium Accuracy: 12.97% Submissions: 1909 Points: 4
Bunty and Dolly are playing a game, described as follows.
There are two boxes full of chocolates. Both can eat 'L' (L>=1) chocolates from any one box or 'L' chocolates from both the box in each step. They play the game alternatively and the last one to eat the chocolate will be the winner.
As Bunty wants to impress Dolly, he wants to make Dolly the winner. You have to help Bunty in deciding who should play first.
Assume that both the players play the game optimally.
The first line contains 'T' denoting the number of testcases. Then follows description of testcases. The next T lines contains the two space separated integers a and b denoting the number of chocolates in two boxes respectively.
For each testcase , Output "Bunty" if Bunty should play first else print "Dolly".
In the first testcase, if Bunty starts first, all the next possible state (0,2), (1,1), (0,1) are wining state for Dolly.