#include using namespace std; using ll = long long; bool solve(){ ll n, m, b, w; cin >> n >> m >> b >> w; if(n > m) swap(n, m); if(n == 1) return false; if(w % 2 == 0) return true; if(n == 2) return false; if(w < 9) return false; return true; } int main() { ios::sync_with_stdio(false); cin.tie(0); int T; cin >> T; while(T--) cout << (solve() ? "Alice" : "Bob") << '\n'; }