#include using namespace std; int main(void){ int t; cin>>t; for(int i=0;i>n>>s; if(n==1){ cout<<"B"<