Team Caribbean_Pirates is facing a crucial moment at their home ground Jungle_Universe, in a 50 overs (300 balls) cricket match. Captain Jack Dumb is currently on strike, gearing up to face the next ball. The team needs Y runs to win from the last X balls, and Captain Jack is Z runs away from reaching his milestone. His partner, being the last man, can only defend without scoring any runs.
Rules of Cricket:
Scoring Runs | The batsman (Captain Jack) on strike can score 0, 1, 2, 3, 4, or 6 runs on each ball. |
Over Structure | Each over consists of six balls delivered by the bowler. After the completion of six balls, an over concludes. |
Changing Strike | The batsmen swap ends after each completed run. This means that, after scoring an odd number of runs (1 run or 3 runs), the batsmen switch positions. |
End of Over | At the end of an over, the non-striker becomes the striker for the next over. If Captain Jack (on strike) doesn't score any odd runs on the last ball of the over, the partner will take strike in the next over. |
Win or Lose | The batting team must achieve the target runs within the allocated 50 overs (300 balls) to secure victory. When the team touches or crosses the target, the batting team is declared as the winner. If not achieved within 50 overs, the opponent will be declared the winner. |
The primary goal of Captain Jack is to win the match for his team. If the captain can win and achieve the milestone, print "Like a Boss!". If the captain can win but cannot reach the milestone, print "Bravo Captain!".
If the captain can't win the match, print "Love You Captain!".
Input
The first line contains an integer T (1 ≤ T ≤ 300000), representing the number of test cases.
Each of the next T lines contains three space-separated integers X, Y and Z (1 ≤ X ≤ 100, 1 ≤ Y ≤ 200, 1 ≤ Z ≤ 200), denoting the team needs Y runs from X balls, while Captain Jack needs Z runs to achieve his milestone.
Input file is large. Please be sure to use faster input/output methods.
Output
For each test case, print the test case number in the format "Case X: ", followed by the desired answer in a single line as stated above. See the sample Input/Output section for more clarity.
Sample
Sample Input | Sample Output |
---|---|
3 3 18 15 7 38 40 1 10 4 | Case 1: Like a Boss! Case 2: Bravo Captain! Case 3: Love You Captain! |
Notes
Explanation
Case 1: The Captain can hit 3 sixes to win the match.
Case 2: The captain can score 3 runs, and then can hit six (06) sixes to get 39 runs. In this case, he can win the match for his team, but can’t achieve the personal milestone.
Case 3: It is impossible to get 10 runs from one ball.
Contest: NCPC 2023 Onsite Hosted by JU
Problem setter: Mohammad Ashraful Islam