#include using namespace std; #define int long long #define rep(i,n) for(int i=0; i<(int)n; i++) #define rep1(i,n) for(int i=1; i<(int)n; i++) #define repa(i,a,n) for(int i=(a); i<(int)(n); i++) #define all(vec) vec.begin(),vec.end() #define COUT(x) cout<<(x)<; using vs = vector; using vvi = vector; using pii = pair; using vpii = vector; const int dx[4] = {1, 0,-1, 0}; const int dy[4] = {0, 1, 0,-1}; int gcd(int a, int b){if(a%b == 0){return(b);}else{return(gcd(b, a%b));}} int lcm(int a, int b){return a/gcd(a, b)*b;} template bool chmax(T &a,const T& b){if(a bool chmin(T &a,const T& b){if(a>b){a=b;return true;}return false;} //cout << fixed << setprecision(15); int N, M, K, H, W, X, Y; string S,T; const int INF = 1e18; // const int mod = 1e9+7; vvi gr; vector seen; void dfs(int a){ seen[a] = true; for(int i : gr[a]){ if(seen[i]==false) dfs(i); } return; } signed main(){ cin >> N; vi brg(N,0); gr.resize(N); rep(i,N-1){ int a, b; cin >> a >> b; brg[a]++; brg[b]++; gr[a].push_back(b); gr[b].push_back(a); } seen.assign(N,false); int cnt = 0; rep(i,N){ if(seen[i]==false) {dfs(i); cnt++;} } int cnt1 = 0; rep(i,N){ if(brg[i]==1) cnt1++; } if(cnt == 1) COUT("Bob"); else if(cnt > 2) COUT("Alice"); else if(cnt1 == 0) COUT("Bob"); else COUT("Alice"); return 0; }