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