s,t;main(i,a){for(;~scanf("%d",&a);)--i&&(s+=a,t+=a>1);puts(s%2&&t<2?"A":"B");}