require 'prime' gets puts gets.split.map{|x|Prime.prime_division(x.to_i).to_a.map{|a|a[1]%3}.inject(:^)}.inject(:^)==0?'Bob':'Alice'