#!/bin/python import sys g = int(raw_input().strip()) for a0 in xrange(g): n = int(raw_input().strip()) li = [] for x in range(1, n + 1): li.append(x) primes = [] toggle = 0 while True: if len(li) == 1: if toggle == 0: print "Bob" break else: print "Alice" break le = li[1] lu = len(li) x = 1 while x < lu: if li[x] % le == 0: li.pop(x) lu-=1 x+=1 toggle^=1 # your code goes here