#include using namespace std; int main(){ int n; cin >> n; int res = 0; for(int i=0,a;i> a; res |= a>2; } cout << (res?'B':'A') << endl; }