<>;$/=$";//,map{my$e;0until$'%$_**$e++;$n^=$e%3}2..1e4for<>;print$n?Alice:Bob