#include<iostream>
using namespace std;
int main()
{
int x;
cin>>x;
if(x>=80 &&x<=100) cout<<"A";
else cout<<"B";
return 0;
using namespace std;
int main()
{
int x;
cin>>x;
if(x>=80 &&x<=100) cout<<"A";
else cout<<"B";
return 0;
}