#include using namespace std; typedef long long ll; int main() { int n; cin>>n; int one=0; int two=0; for (int i=0;i>a; if (a>=3) { puts("B"); return 0; } if (a==2) { two++; if (two>=2) { puts("B"); return 0; } } else if (a==1) one++; } if (one&1) puts("A"); else puts("B"); return 0; }