module Main (main) where

import qualified Data.ByteString.Char8     as C8
import           Data.Maybe

main :: IO ()
main = do
  [x,a,b] <- readInts
  print . showAnswer $ solve (x,a,b)

type Input  = (Int, Int, Int)
type Output = Bool

solve :: Input -> Output
solve (x,a,b) = (xa < xb)
  where
    xa = abs (x-a)
    xb = abs (x-b)

showAnswer :: Output -> Answer
showAnswer = AB

-- utils
readInts :: IO [Int]
readInts = map (fst . fromJust . C8.readInt) . C8.words <$> C8.getLine

data Answer
  = YesNo Bool
  | AB Bool

instance Show Answer where
  show (YesNo b) = if b then "Yes" else "No"
  show (AB b)    = if b then "A"   else "B"