"use strict";
const main = (input) => {
  const [x, a, b] = input.trim().split(" ").map(Number);
  return Math.abs(x - a) < Math.abs(x - b) ? "A" : "B";
};
console.log(main(require("fs").readFileSync("/dev/stdin", "utf8")));
