#include using namespace std; void solve() { int h, w, x, y; cin >> h >> w >> x >> y; if(h > w) { swap(h, w); swap(x, y); } if(h == 1) { cout << "Bob\n"; return; } if(h == 2) { int lmv = (y - 1) / 2; int rmv = (w - y) / 2; if(lmv % 2 or rmv % 2) cout << "Alice\n"; else cout << "Bob\n"; return; } if(h == 3 and w == 3) { if(x == 2 and y == 2) { cout << "Bob\n"; } else { cout << "Alice\n"; } return; } if(h % 2 == 0 or w % 2 == 0) { cout << "Alice\n"; } else if((x + y) % 2) { cout << "Alice\n"; } else if(h == 3 and w == 5) { if((x == 1 and y == 3) or (x == 3 and y == 3)) { cout << "Alice\n"; } else { cout << "Bob\n"; } } else { cout << "Bob\n"; } return; } int main() { int t; cin >> t; while(t--) solve(); }