#include<bits\stdc++.h>

int main()
{
    float x,a,b;
    scanf("%f %f %f", &x, &a, &b);
    if(abs(x-a)==abs(x-b))
       { printf("equal");}
    if(abs(x-a)<abs(x-b))
        {printf("A");}
    else
        {printf("B");}
    return 0;
}
