#include #include #define rep(i,a) for(int i=0;i<(a);++i) int N, M, ans; std::map prime_factor( int n ) { std::map ret; for( int i = 2; i*i <= n; ++i ) while( n % i == 0 ) { ++ret[i]; n /= i; } if( n != 1 ) ++ret[n]; return ret; } int main() { scanf( "%d", &N ); rep( i, N ) { int M; scanf( "%d", &M ); auto m = prime_factor( M ); for( auto it = m.begin(); it != m.end(); ++it ) ans ^= it->second%3; } puts( ans?"Alice":"Bob" ); return 0; }