#include #define MOD 1000000007LL using namespace std; typedef long long ll; typedef pair P; int n; ll c[151]; int main(void){ scanf("%d",&n); ll all=0; for(int i=0;i2)flag=true; } if(cnt>=2)flag=true; printf("%s\n",flag?"B":"A"); } return 0; }