function Main(input) {
  input = input.trim()
  input = input.split(" ").map(Number);
  if(Math.abs(input[0]-input[1])>Math.abs(input[0]-input[2])) console.log("B");
  else console.log("A")
}Main(require("fs").readFileSync("/dev/stdin", "utf8"));