program ex;
type
ss=array[1..10000]of longint;
var
a:ss;
f1,f2:text;
k:integer;
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]=1 then writeln(f2,'Alice')
else if a[i]=2 then writeln(f2,'Alice')
else if a[i]=3 then writeln(f2,'Bob')
else writeln(f2,'Alice');
end;
begin
init;
main;
close(f2);
end.