#include using namespace std; int main() { int n; cin >> n; if (n == 1) { cout << "B" << endl; } else { cout << "A" << endl; } return 0; }