#include #include using namespace std; typedef long long ll; int main(){ int t; cin >> t; while(t){ t--; ll n; string s; cin >> n >> s; ll x = n; while(!(x&1)){ x /= 2; } if(x==1){ if(n==2){ if(s=="Odd") cout << "Alice\n"; else cout << "Bob\n"; }else{ if(s=="Odd") cout << "Bob\n"; else cout << "Alice\n"; } }else if(n&1){ cout << "Alice\n"; }else{ cout << "Bob\n"; } } }