r, c = map(int, input().split()) b = c - 1 + (r - 1) * c print("Beata" if b % 2 == 0 else "Alf")