Problem

Multiple rooted trees are given as the initial state. Alice and Bob, on the other hand, play the game. The game is played alternately by two players, with Alice on the play and Bob on the play. The player whose turn has turned takes the following actions.

1. Select one root (vertex that has no parent). Let this vertex be S.
2. Select the vertices contained in the rooted tree rooted at S (S can also be selected here). Let this vertex be T.
3. Delete all vertices on the path from S to T, including S and T. It also deletes all edges where the deleted vertices are endpoints.



If all vertices have been deleted when the turn comes, that player loses.

When Alice and Bob always take the best action, determine which player will win against a given initial state.

The figure below shows an example of a player's actions.
Example of player behavior

Constraints

The input satisfies the following constraints.

* 1 ≤ N ≤ 1000
* 0 ≤ M <N
* i <pi ≤ N (1 ≤ i ≤ M)

Input

The input is given in the following format.


N M
p1
p2
::
pM


In the first line, the number of vertices N and the number of sides M in the initial state are given separated by blanks. At this time, the numbers representing each vertex are 1 to N. The next M line gives edge information. Of these, in line i, one integer pi is given. This means that there is an edge from vertex pi to vertex i. In other words, it means that the parent of vertex i is vertex pi.

Output

Print the name of the winning player (Alice or Bob) on one line.

Examples

Input

6 3
4
4
5


Output

Alice


Input

6 4
2
5
4
5


Output

Bob
#include <bits/stdc++.h>
#define MOD 1000000007LL
using namespace std;
typedef long long ll;
typedef pair<int,int> P;

int n,m;
vector<int> G[1005];
vector<int> rG[1005];
bool used[1005];
int gr[1005];
int cnt[10000];

void dfs2(int v,int g){
	int su=0;
	for(int i=0;i<G[v].size();i++){
		su^=gr[G[v][i]];
	}
	cnt[g^su]++;
	for(int i=0;i<G[v].size();i++){
		dfs2(G[v][i],su^gr[G[v][i]]^g);
	}
}

int dfs(int v){
	used[v]=true;
	if(G[v].size()==0)return gr[v]=1;
	int su=0;
	for(int i=0;i<G[v].size();i++){
		if(!used[G[v][i]]){
			su^=dfs(G[v][i]);
		}
	}
	memset(cnt,0,sizeof(cnt));
	cnt[su]++;
	//printf("v=%d %d\n",v,su);
	for(int i=0;i<G[v].size();i++){
		dfs2(G[v][i],su^gr[G[v][i]]);
	}
	int val=0;
	while(cnt[val]>0){
		val++;
	}
	return (gr[v]=val);
}

int main(void){
	scanf("%d%d",&n,&m);
	for(int i=0;i<m;i++){
		int a;
		scanf("%d",&a);
		a--;
		G[a].push_back(i);
		rG[i].push_back(a);
	}
	int ans=0;
	for(int i=0;i<n;i++){
		if(rG[i].size()==0){
			int md=dfs(i);
			ans^=md;
			//printf("%d %d\n",i,md);
		}
	}
	printf("%s\n",ans==0?"Bob":"Alice");
	return 0;
}

