map{<>;$h^=$r{$_}//=rand 9e9for glob<>;print$h?Alice:Bob,$h=$/}1..<>