#include using namespace std; int main(void) { cin.tie(0); ios::sync_with_stdio(false); int n,t; cin >> n; int val = 0; for(int i=0;i> t; if(t==1) val^=1; } if(val>0) cout << "A" << '\n'; else cout << "B" << '\n'; return 0; }