object Main extends App {
	import scala.io.StdIn._
	import scala.math

	val N = readLine.split(" ").map(_.toInt)
	val a = (N(0) - N(1)).abs
	val b = (N(0) - N(2)).abs

	if(a < b) println("A")
	else println("B")
}