#include int main(){ int n,a[3],temp; scanf("%d",&n); for(int i=0;i2){ printf("B\n"); return 0; } else a[temp]++; } if(a[2]>1){ printf("B\n"); return 0; } if(a[1]%2==0){ printf("B\n"); return 0; } printf("A\n"); }