import math def determine_winner(a, b): phi = (1 + math.sqrt(5)) / 2 # Golden ratio ~1.618 current_player = True # True for Alice's turn, False for Bob's while True: if a == 0: return "Bob" if b == 0: return "Alice" if current_player: # Alice's turn if a >= b: if a % b == 0: return "Alice" if a >= b * phi: a %= b else: a -= 1 else: a -= 1 else: # Bob's turn if b >= a: if b % a == 0: return "Bob" if b >= a * phi: b %= a else: b -= 1 else: b -= 1 current_player = not current_player # Read input A = int(input()) B = int(input()) # Determine and print the winner print(determine_winner(A, B))