module Main where

import Control.Applicative
import Control.Monad
import Data.List

main :: IO ()
main = do
    [x, a, b] <- fmap read . words <$> getLine
    if abs (a - x) < abs (b - x)
        then putStrLn "A"
        else putStrLn "B"