#include using namespace std ; #define ft first #define sd second #define pb push_back #define all(x) x.begin(),x.end() #define ll long long int #define vi vector #define vii vector > #define pii pair #define vl vector #define vll vector > #define pll pair #define mp make_pair #define sc1(x) scanf("%d",&x) #define sc2(x,y) scanf("%d%d",&x,&y) #define sc3(x,y,z) scanf("%d%d%d",&x,&y,&z) #define scll1(x) scanf("%lld",&x) #define scll2(x,y) scanf("%lld%lld",&x,&y) #define scll3(x,y,z) scanf("%lld%lld%lld",&x,&y,&z) #define pr1(x) printf("%d\n",x) #define pr2(x,y) printf("%d %d\n",x,y) #define pr3(x,y,z) printf("%d %d %d\n",x,y,z) #define prll1(x) printf("%lld\n",x) #define prll2(x,y) printf("%lld %lld\n",x,y) #define prll3(x,y,z) printf("%lld %lld %lld\n",x,y,z) #define pr_vec(v) for(int i=0;i=b; i--) #include #include int main() { // f_in( "in05.txt" ); // f_out( "out05.txt" ); int t; cin >> t; assert( t <= 10 && t >= 1 ); while( t-- ) { string s; cin >> s; int n = s.length(); assert( n <= 10000 && n >= 1 ); bool f = false; int left, right; left = right = 0; int i; fr(i, 0, n-1) { assert( s[i] == 'B' || s[i] == 'W' ); if(s[i] == 'W') { f = 1 - f; } else { if( !f ) left ++; else right ++; } } assert( f ); puts( left == right ? "Chef" : "Aleksa"); } return 0; }