Snuke lives at position x on a number line.
On this line, there are two stores A and B, respectively at position a and b, that offer food for delivery.
Snuke decided to get food delivery from the closer of stores A and B.
Find out which store is closer to Snuke's residence.
Here, the distance between two points s and t on a number line is represented by |s-t|.

-----Constraints-----
 - 1 \leq x \leq 1000
 - 1 \leq a \leq 1000
 - 1 \leq b \leq 1000
 - x, a and b are pairwise distinct.
 - The distances between Snuke's residence and stores A and B are different.

-----Input-----
Input is given from Standard Input in the following format:
x a b

-----Output-----
If store A is closer, print A; if store B is closer, print B.

-----Sample Input-----
5 2 7

-----Sample Output-----
B

The distances between Snuke's residence and stores A and B are 3 and 2, respectively.
Since store B is closer, print B.

Difficulty: introductory

Starter code:

Solutions:
x, a, b = (int(x) for x in input().split())
if abs(a-x) < abs(b-x):
    print("A")
else:
    print("B")

x, a, b = map(int, input().split())
if abs(x - a) < abs(x - b): print('A')
else: print('B')

x, a, b = map(int, input().split())
print("AB"[abs(x-a)>abs(x-b)::2])

x,a,b = map(int,input().split())

if abs(x-a) < abs(x-b):
  print('A')
else:
  print('B')

x,a,b = map(int,input().split())
print("A" if abs(x-a) < abs(x-b) else "B")

x,a,b = map(int,input().split())
if abs(a-x)>abs(b-x):
    print("B")
else:
    print("A")

a = [int(x) for x in input().split()]
if abs(a[1] - a[0]) > abs(a[2] - a[0]):
  print("B")
else:
  print("A")

x, a, b = map(int, input().split())

print("B" if abs(x-a) > abs(x-b) else "A")

x, a, b = map(int, input().split())
print("BA"[abs(a - x) < abs(b - x)])

x, a, b = map(int, input().split())
if abs(x-a)>abs(x-b):
    print('B')
else:
    print('A')

x,a,b=map(int,input().split(" "))
print("A") if abs(a-x)<abs(b-x) else print("B")

x, a, b = list(map(int, input().split()))
if abs(x-a) > abs(x-b):
    print('B')
else:
    print('A')



x, a, b = map(int, input().split())
print('A' if abs(x-a) < abs(x-b) else 'B')

def main():
    x, a, b = list(map(int, input().split()))
    print(('A' if abs(x - a) < abs(x - b) else 'B'))


def __starting_point():
    main()

__starting_point()

x,a,b = map(int,input().split())
if abs(x - a) < abs(x - b):
    print('A')
else:
    print('B')

x,a,b=map(int,input().split())
print('A' if abs(a-x)<abs(b-x) else 'B')

x, a, b = map(int, input().split())
print('B' if abs(b-x) < abs(a-x) else 'A')

x,a,b=map(int,input().split())
if abs(x-a)<abs(x-b):
  print("A")
else:
  print("B")

x,a,b=map(int,input().split())
print("A") if abs(x-a)<abs(x-b) else print("B")

x,a,b=list(map(int,input().split()))

if abs(x-a) >= abs(x-b):
  print('B')
else:
  print('A')

x, a, b = map(int, input().split())
if abs(x-a) < abs(x-b):
  print('A')
else:
  print('B')

x,a,b=map(int,input().split())
if abs(a-x)<abs(b-x):
  print("A")
else:
  print("B")

x,a,b = map(int,input().split())
print('A' if abs(x-a) < abs(x-b) else 'B')

x,a,b=map(int,input().split())

if abs(x-a)>abs(x-b):
    ans='B'
else:
    ans='A'
print(ans)

a,b,c = map(int,input().split())

if abs(a-b) < abs(a-c):
    print('A')
else:
    print('B')

x, a, b = map(int, input().split())
if abs(x-a) < abs(x-b):
  print("A")
else:
  print("B")

x, a, b = list(map(int, input().split()))
if abs(x - a) > abs(x - b):
    print("B")
else:
    print("A")


x,a,b=map(int,input().split())
print('A' if abs(x-a)<abs(x-b) else 'B')

x,a,b = map(int,input().split())
if abs(a-x) < abs(b-x):
    print('A')
else:
    print('B')

x,a,b=map(int,input().split())

if abs(x-a)>=abs(x-b):
  print('B')
        
else:
  print('A')

a,b,c = map(int,input().split())
if abs(a - b) < abs(a - c):
    print("A")
else:
    print("B")

x, a, b = map(int, input().split())
if abs(x - a) > abs(x - b):
    print('B')
else:
    print('A')

x, a, b = list(map(int, input().split()))
if abs(x-a) > abs(x-b):
  print("B")
else:
  print("A")


x, a, b = map(int, input().split())
ar = abs(x - a)
br = abs(x - b)

if br < ar:
    print("B")
elif br > ar:
    print("A")

x,a,b = map(int,input().split())
if abs(a - x) > abs(b - x):
    print("B")
else:
    print("A")

x,a,b= map(int,input().split())
if abs(x-a)>abs(x-b):
    print("B")
else:
    print("A")

x, a, b = map(int, input().split())
la = abs(a - x)
lb = abs(b - x)
print("A" if la < lb else "B")

x,a,b=map(int,input().split());print('AB'[abs(x-a)-abs(x-b)>=0])

x,a,b=list(map(int,input().split()))
if abs(x-a)<abs(x-b):
    print('A')
else:
    print('B')


a, b, c = map(int, input().split())

d = a-b
if d < 0:
  d *= -1
e = a-c
if e < 0:
  e *= -1

if d >= e:
  print("B")
else:
  print("A")

x, a, b = map(int, input().split())

A = abs(a - x)
B = abs(b - x)

if A < B:
    print('A')
else:
    print('B')

x,a,b = map(int, input().split())

print("A" if abs(x-a) < abs(x-b) else "B")

x,a,b=map(int,input().split())
if abs(a-x)<abs(b-x):
    print('A')
else:
    print('B')

x, a, b = list(map(int, input().split()))

if abs(x - a) < abs(x - b):
    print('A')
else:
    print('B')


x,a,b = list(map(int,input().split()))
if abs(x-a) < abs(x-b):
  print("A")
elif abs(x-a) > abs(x-b):
  print("B")


a,b,c=list(map(int,input().split()))
if abs(a-b)<abs(a-c):
  print("A")
else:
  print("B")


#n = int(input())
x, a, b = list(map(int, input().split()))
#l = list(map(int,input().split()))
#l = [list(map(int,input().split())) for i in range(n)]
if abs(x-a) < abs(x-b):
    print('A')
else:
    print('B')


x,a,b = map(int,input().split())
if abs(x-a)<abs(x-b):
    print('A')
else:
    print('B')

x, a, b = list(map(int, input().split()))
print(("A" if max(x, a) - min(x, a) < max(x, b) - min(x, b) else "B"))


def iroha():
    x, a, b = list(map(int, input().split()))
    on = abs(x-a)
    off = abs(x-b)
    print(("A" if on < off else "B"))





def __starting_point():
    iroha()


__starting_point()

X,A,B=map(int,input().split())
a=abs(X-A)
b=abs(X-B)
if a<b:
    ans="A"
elif b<a:
    ans="B"
print(ans)

x,a,b = map(int,input().split())

a = abs(a-x)
b = abs(b-x)

if a < b:
    print("A")
else:
    print("B")

x, a, b = map(int, input().split())
print('A' if abs(x-a)<abs(x-b) else 'B')

x, a, b = map(int, input().split())
if abs(x - b) > abs(x - a):
    print('A')
else:
    print('B')

x,a,b = map(int,input().split())
print("A" if abs(x-a) < abs(x-b) else "B")

x,a,b=map(int,input().split())
if min(abs(x-a),abs(x-b))==abs(x-a):
    print("A")
else:
    print("B")

x, a, b = list(map(int, input().split()))
print(('A' if abs(x - a) < abs(x - b) else 'B'))


x, a, b = map(int, input().split())
print("A" if abs(a - x) < abs(b - x) else "B")

x, a, b = list(map(float,input().split()))

if abs(x - a) < abs(x - b):
    print("A")
else:
    print("B")


x,a,b = map(int,input().split())
A = abs(x-a)
B = abs(x-b)

if A<=B:
  print("A")
else:
  print("B")

x, a, b = list(map(int, input().split()))
if abs(x - a) > abs(x - b):
    print('B')
else:
    print('A')

x, a, b = list(map(int, input().split()))
if abs(x-a)<abs(x-b):
  print("A")
else:
  print("B")


x, a, b = map(int, input().split())

if abs(x - a) < abs(x - b):
    print('A')
else:
    print('B')

x, a, b = map(int, input().split())
if abs(a-x) < abs(b-x):
  print('A')
else:
  print('B')

x,a,b=map(int,input().split())
A=abs(a-x)
B=abs(b-x)
print('A' if A < B else 'B')

x, a, b = map(int, input().split())
if abs(x-a) > abs(x-b):
    print("B")
else:
    print("A")

x,y,z=map(int,input().split())
if abs(y-x) < abs(z-x):
    print("A")
else:
    print("B")

lst = input().split()

x = int(lst[0])
a = int(lst[1])
b = int(lst[2])

def distance(p):
   return abs(p - x)

if distance(a) < distance(b):
   print('A')
else:
   print('B')

x,a,b=map(int,input().split())
print("A" if abs(x-a) < abs(x-b) else "B")

x,a,b=map(int,input().split())
if abs(a-x)>abs(x-b):
  print("B")
else:
  print("A")

x,a,b = map(int,input().split())

if abs(x-a) <= abs(x-b):
    print('A')
    
else:
    print('B')

x, a, b = map(int, input().split())
if (x - a) ** 2 < (x - b) ** 2:
    print('A')
else:
    print('B')

x, a, b = map(int, input().split())
if abs(x-a) > abs(x-b):
    print("B")
else:
    print("A")

x,a,b=map(int,input().split())
if abs(a-x)>abs(b-x):print("B")
else: print("A")

x,a,b = map(int,input().split())
if abs(x-a) < abs(x-b):
    print("A")
else:
    print("B")

x, a, b = map(int,input().split())
print('A') if abs(x-a) < abs(x-b) else print('B')


x,a,b = map(int,input().split())
print("A" if abs(b-x)>abs(a-x) else "B")

x, a, b = (int(x) for x in input().split())
if abs(a-x) < abs(b-x):
    print("A")
else:
    print("B")

x, a, b = map(int, input().split())
print('A' if abs(x-a) < abs(x-b) else 'B')

#ABC071A
x,a,b = map(int,input().split())
print("A" if abs(x-a) <= abs(x-b) else "B")

x,a,b=map(int,input().split())
if abs(x-a)>abs(x-b):print('B')
else:print('A')

x,a,b=map(int,input().split())
if abs(x-a)<abs(x-b) :
  print("A")
else :
  print("B")

x,a,b=list(map(int,input().split()))
if abs(x-a)<abs(x-b):
    print("A")
else:
    print("B")


a, b, c = [int(x) for x in input().split()] 

if abs(a - b) > abs(a - c):
   print("B")
else:
   print("A")


x,a,b = map(int,input().split())
if abs(a-x)>=abs(b-x):
  print("B")
else:
  print("A")

x,a,b = map(int, input().split())
if abs(x-a) < abs(x-b):
  print("A")
else:
  print("B")

x,a,b = map(int,input().split())
if abs(x-a) > abs(x-b):
    print('B')
else:
    print('A')

x,a,b = map(int,input().split())
A = abs(x-a)
B = abs(x-b)

if A < B:
  print("A")
else:
  print("B")

x,a,b=map(int,input().split())
if abs(x-a)<abs(x-b):
    print("A")
else:
    print("B")

x, a, b = list(map(int, input().split()))

a_x = abs(a - x)
b_x = abs(b - x)

if a_x < b_x:
    print('A')
else:
    print('B')


x, a, b, = list(map(int, input().split()))
print(("A" if(abs(x-a) < abs(x-b)) else "B"))


x, a, b = map(int, input().split())
if abs(x-a) < abs(x-b):
	print('A')
else:
	print('B')

#
# abc071 a
#
import sys
from io import StringIO
import unittest


class TestClass(unittest.TestCase):
    def assertIO(self, input, output):
        stdout, stdin = sys.stdout, sys.stdin
        sys.stdout, sys.stdin = StringIO(), StringIO(input)
        resolve()
        sys.stdout.seek(0)
        out = sys.stdout.read()[:-1]
        sys.stdout, sys.stdin = stdout, stdin
        self.assertEqual(out, output)

    def test_入力例_1(self):
        input = """5 2 7"""
        output = """B"""
        self.assertIO(input, output)

    def test_入力例_2(self):
        input = """1 999 1000"""
        output = """A"""
        self.assertIO(input, output)


def resolve():
    x, a, b = list(map(int, input().split()))
    if abs(x-a) > abs(x-b):
        print("B")
    else:
        print("A")


def __starting_point():
    # unittest.main()
    resolve()

__starting_point()

s_position, a_store, b_store = list(map(int, input().split()))

dis_a_s = abs(a_store - s_position)
dis_b_s = abs(b_store - s_position)

if dis_b_s > dis_a_s:
    print('A')
elif dis_a_s > dis_b_s:
    print('B')


a,b,c=input().split()
a=int(a)
b=int(b)
c=int(c)
if abs(b-a)>abs(c-a):
  print("B")
else:
  print("A")

x,a,b=map(int,input().split())
if abs(x-a) <abs(x-b):
    print("A")
else:
    print("B")

x, a, b = map(int, input().split())
if abs(x-a)<abs(x-b):
    print('A')
else:
    print('B')

x, a, b= map(int, input().split())

print('A' if abs(x - a) < abs(x - b) else 'B')

with open(0) as f:
    x, a, b = map(int, f.read().split())
print('A' if abs(x-a) < abs(x-b) else 'B')

x,a,b=map(int,input().split())
if abs(x-a)>abs(x-b):
  print("B")
else:
  print("A")