#include #include #include #include #include #include #include #include #include #include #include #include #define vll vector #define vvvl vector #define vvl vector> #define VV(a, b, c, d) vector>(a, vector(b, c)) #define VVV(a, b, c, d) vector(a, vvl(b, vll (c, d))); #define re(c, b) for(ll c=0;c> n; vll a(n);get(a); ll cnt = 0, one = 0; re(i, n) { if(a[i]>=3){ std::cout << "B" << '\n'; return 0; } if(a[i] >= 2) cnt++; if(a[i] == 1) one++; } if(cnt>=2){ std::cout << "B" << '\n'; return 0; } //総和が奇数なら勝ち ll s = 0; re(i, n) s += a[i]; if(s%2) std::cout << "A" << '\n'; else std::cout << "B" << '\n'; return 0; }