#include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; typedef pair PII; typedef vector VI; typedef vector VVI; #define MP make_pair #define PB push_back #define inf 1000000007 long long mod = 1000000007; int main(){ int n; cin >> n; vector c(n); for(int i=0;i> c[i]; } bool flag = 0; int x=0; int y=0; int z=0; for(int i=0;i=2||(x+y+z!=n)){ cout << "B" << endl; }else{ if((x+2)%2==1){ cout << "A" << endl; }else{ cout << "B" << endl; } } return 0; }