<>;for$k(<>=~/\S+/g){for(2..99){$e=0;$k/=$_,$e++until($k%$_);$n^=$e%3;}$n^=1 if$k>1}print$n?Alice:Bob