Levels Tought:
Elementary,Middle School,High School,College,University,PHD
Teaching Since: | May 2017 |
Last Sign in: | 307 Weeks Ago, 2 Days Ago |
Questions Answered: | 66690 |
Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
In the climax of an upcoming Bollywood movie "BHAI HO!", Bhai is standing at the centre of a large battlefield. Bhai is sorrounded by the army of Bacchha Singh from all sides. Each soldier of Bacchha's army is at some distance from Bhai. They all are heading towards Bhai with swords in their hands. At the centre, Bhai has a gun with unlimited Bullets. And you know, Bhai never misses a shot!. But a hurdle to Bhai is that he has to reload the gun after he has fired 6 bullets.
Bhai is killing soldiers at one soldier per second. By this time, every other soldier moves a step towards Bhai. Also, the reloading of the gun takes one second.
Now, you have to tell whether Bhai will be able to survive or not. And if Bhai fails in killing them all, tell the Number of soldiers killed by Bhai before falling.
The first line of input contains an integer T, denoting the number of test cases.
T test cases follow. In each test case, the first line contains an integer N, denoting the number of soldiers.
In the next line, there are N integers representing the distance of each soldier from Bhai.
For each test case Print the result as:
If Bhai survives:
Bhai Ho!
if Bhai fails:
Killed M
Here M is the number of soldiers Bhai killed before dying.
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll