#include using namespace std; string solve(long long a, long long b) { int turn = 0; // 0 = Alice, 1 = Bob while (true) { if (a < b) swap(a, b); if (a % b == 0) { if ((a / b) % 2 == 1) { return turn == 0 ? "Bob" : "Alice"; } else { return turn == 0 ? "Alice" : "Bob"; } } a %= b; turn ^= 1; } } int main() { long long A, B; cin >> A >> B; cout << solve(A, B) << endl; return 0; }