SP10401 ALIEN - Aliens at the train
Description
The aliens have arrived to Earth and everything is in harmony, the two races can live together. However, one specific Female Alien does not want to see humans on her way to the university, the alien must use the train as every human does. But she can choose any train station such she doesn’t see more than B humans, however, the Alien wants to go as far as possible with the train. Please, help her in this task.
Input Format
You will receive one integer T denoting the number of test cases, then, the next line will contain two integers At Bt where At and Bt is the number of stations in the train (1
Output Format
Your output should consist on T pair of numbers denoting the number of people the alien will see and the number of stations she will pass respectively.