program ex;
type
ss=array[-100..10000]of longint;
var
a,f:ss;
f1,f2:text;
k,n,i:integer;
flag:boolean;
procedure init;
var
i:integer;
begin
assign(f1,'coins.in');
assign(f2,'coins.out');
reset(f1);
rewrite(f2);
readln(f1,k);
for i:=1 to k do
readln(f1,a[i]);
close(f1);
end;
procedure main;
var
i:integer;
begin
for i:=1 to k do
if a[i]<=2 then writeln(f2,'Alice')
else writeln(f2,'Bob');
end;
begin
init;
main;
close(f2);
end.