{"trustable":true,"prependHtml":"\u003cscript\u003e window.katexOptions \u003d { disable: true }; \u003c/script\u003e\n\u003cscript type\u003d\"text/x-mathjax-config\"\u003e\n MathJax.Hub.Config({\n tex2jax: {\n inlineMath: [[\u0027$$$\u0027,\u0027$$$\u0027], [\u0027$\u0027,\u0027$\u0027]],\n displayMath: [[\u0027$$$$$$\u0027,\u0027$$$$$$\u0027], [\u0027$$\u0027,\u0027$$\u0027]]\n }\n });\n\u003c/script\u003e\n\u003cscript async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS-MML_HTMLorMML\" type\u003d\"text/javascript\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"HTML","content":"\u003cdiv class\u003d\"panel_content\"\u003eLittle John is playing very funny game with his younger brother. There is one big box filled with M\u0026amp;Ms of different colors. At first John has to eat several M\u0026amp;Ms of the same color. Then his opponent has to make a turn. And so on. Please note that each player has to eat at least one M\u0026amp;M during his turn. If John (or his brother) will eat the last M\u0026amp;M from the box he will be considered as a looser and he will have to buy a new candy box.\u003cbr\u003e\u003cbr\u003eBoth of players are using optimal game strategy. John starts first always. You will be given information about M\u0026amp;Ms and your task is to determine a winner of such a beautiful game.\u003cbr\u003e\u003cbr\u003e\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"The first line of input will contain a single integer T – the number of test cases. Next T pairs of lines will describe tests in a following format. The first line of each test will contain an integer N – the amount of different M\u0026amp;M colors in a box. Next line will contain N integers Ai, separated by spaces – amount of M\u0026amp;Ms of i-th color.\u003cbr\u003e\u003cbr\u003eConstraints:\u003cbr\u003e1 \u0026lt;\u003d T \u0026lt;\u003d 474,\u003cbr\u003e1 \u0026lt;\u003d N \u0026lt;\u003d 47,\u003cbr\u003e1 \u0026lt;\u003d Ai \u0026lt;\u003d 4747\u003cbr\u003e\u003cbr\u003e"}},{"title":"Output","value":{"format":"HTML","content":"Output T lines each of them containing information about game winner. Print “John” if John will win the game or “Brother” in other case.\u003cbr\u003e\u003cbr\u003e"}},{"title":"Sample","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e2\r\n3\r\n3 5 1\r\n1\r\n1\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eJohn\r\nBrother\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}