#include<bits/stdc++.h>
using namespace std;
int main()
{
int x,A,B;
cin>>x;
if(x>=80 &&x<=100) cout<<"A";
else cout<<"B";
return 0;
}
using namespace std;
int main()
{
int x,A,B;
cin>>x;
if(x>=80 &&x<=100) cout<<"A";
else cout<<"B";
return 0;
}