import java.util.*; public class Main_yukicoder103 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int ret = 0; for (int i = 0; i < n; i++) { int m = sc.nextInt(); int tmp = m; for (int j = 2; j * j <= m; j++) { int cnt = 0; while (tmp % j == 0) { cnt++; tmp /= j; } ret ^= cnt % 3; } if (tmp != 1) { ret ^= 1; } } if (ret != 0) { System.out.println("Alice"); } else { System.out.println("Bob"); } sc.close(); } }