#include<bits/stdc++.h>
using namespace std;
#define int long long
signed main()
{
int T;
cin>>T;
while (T-- )
{
int flag=0;
int sky,skyzo=0;
int n;
cin>>n;
for (int i = 0; i < n; i ++ )
{
cin>>sky;
if(sky!=1)
flag++;
skyzo^=sky;
}
if(!flag)
{
if(n%2)cout<<"Brother"<<endl;
else cout<<"John"<<endl;
}
else
{
if(skyzo)cout<<"John"<<endl;
else cout<<"Brother"<<endl;
}
}
}
11-19
11-18
05-29
05-29
05-29
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交