#include using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); int n; cin >> n; vector a(n); for (int i = 0; i < n; i++) { cin >> a[i]; } long long ans = 0; for (int i = 0; i < n; i++) { int g = 0; for (int j = 2; j * j <= a[i]; j++) { if (a[i] % j == 0) { int cnt = 0; while (a[i] % j == 0) { a[i] /= j; cnt++; } g ^= (cnt % 3); } } if (a[i] != 1) g ^= 1; ans ^= g; } cout << (ans == 0 ? "Bob\n": "Alice\n"); }