#include #include using namespace std; bool canWin(long long a, long long b, bool isAliceTurn) { if (a == 0 || b == 0) return false; if (a < b) swap(a, b); if (a % b == 0) return true; if (a >= 2 * b) return true; return !canWin(b, a - b, !isAliceTurn); } int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); long long A, B; cin >> A >> B; if (canWin(A, B, true)) { cout << "Alice" << endl; } else { cout << "Bob" << endl; } return 0; }