ll@n,@m,x=0;rep(n){ll@a;x^=a/m<<32|a%m;}wt(x?"Alice":"Bob");