<>;$/=$";for$k(<>){map{$e=0;$k/=$_,$e++until$k%$_;$n^=$e%3}2..1e4}print$n?Alice:Bob