def winner(a, b): turn = 0 while True: if a < b: a, b = b, a turn ^= 1 if b == 0: return "Bob" if turn == 0 else "Alice" if a // b > 1: return "Alice" if turn == 0 else "Bob" a, b = b, a % b turn ^= 1 A = int(input()) B = int(input()) print(winner(A, B))