#include using namespace std; void solve() { int h, w, r, c; cin >> h >> w >> r >> c; bool bob = false; if (h==1 && w==1 && r==1 && c==1) bob = true; if (h==7 && w==7 && r==4 && c==4) bob = true; cout << (bob ? "Bob" : "Alice") << '\n'; } int main() { int T; cin >> T; while (T--) solve(); }