#include <cstdio>

int main(){
    int N;
    scanf("%d", &N);

    int ex_or = 0;
    for(int i=0;i<N;i++){
        int n;
        scanf("%d", &n);

        for(int j=2;j*j<=n;j++){
            int t = 0;
            while(n % j == 0){
                t += 1;
                n /= j;
            }

            ex_or ^= t % 3;
        }
        
        if(n > 1){
            ex_or ^= 1;
        }
    }

    if(ex_or == 0){
        puts("Bob");
    }else{
        puts("Alice");
    }
}