import java.util.Scanner

object Main {
  def main(args:Array[String]): Unit = {
    val sc = new Scanner(System.in)
    val x, a, b = sc.nextInt()

    if ((x - a).abs < (x - b).abs) {
      println("A")
    } else {
      println("B")
    }
  }
}