Given a grid with dimensions R x C, the 2 players (say JON and ARYA ) can move the coin over the grid satisfying the following rules:
The first line of the input contains an integer T denoting the number of test cases. Then T test cases follow. Each test case consists of a single line contaning 2 space seperated integers C and R.
For each test case, output the name of the winner ( either JON or ARYA)
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.