#include using namespace std; #define REP(i,m,n) for(int i=(m); i<(int)(n); i++) #define RREP(i,m,n) for(int i=(int)(n-1); i>=m; i--) #define rep(i,n) REP(i,0,n) #define rrep(i,n) RREP(i,0,n) #define all(a) (a).begin(),(a).end() #define rall(a) (a).rbegin(),(a).rend() #define aut(r,v) __typeof(v) r = (v) #define each(it,o) for(aut(it,(o).begin()); it!=(o).end(); ++it) #define reach(it,o) for(aut(it,(o).rbegin()); it!=(o).rend(); ++it) #define fi first #define se second #define debug(...) {cerr<<"[L"<<__LINE__<<"] "; _debug(__VA_ARGS__);} template ostream& operator<<(ostream& o, const pair& p) {return o<<"("<string join(const vector&v, string del=", ") {stringstream s;rep(i,v.size())s<ostream& operator<<(ostream& o, const vector&v) {if(v.size())o<<"["<ostream& operator<<(ostream& o, const vector >&vv) {int l=vv.size();if(l){o<ostream& operator<<(ostream& o, const set& st) {vector v(st.begin(),st.end());o<<"{ "<ostream& operator<<(ostream& o, const map& m) {each(p,m){o<<(p==m.begin()?"{ ":",\n ")<<*p<<(p==--m.end()?" }":"");}return o;} inline void _debug(){cerr< void _debug(const First& first, const Rest&... rest){cerr< pii; typedef vector vi; typedef vector vvi; typedef vector vl; typedef vector vvl; const double PI = (1*acos(0.0)); const double EPS = 1e-9; const ll INF = 0x3f3f3f3f; const ll INFL = 0x3f3f3f3f3f3f3f3fLL; const ll mod = 1e9 + 7; inline void finput(string filename) { freopen(filename.c_str(), "r", stdin); } struct UnionFind { vector dat; UnionFind(int _size) : dat(_size, -1) { } bool unionSet(int x, int y) { x = root(x); y = root(y); if (x != y) { if (dat[y] < dat[x]) swap(x, y); dat[x] += dat[y]; dat[y] = x; } return x != y; } bool findSet(int x, int y) { return root(x) == root(y); } int root(int x) { return dat[x] < 0 ? x : dat[x] = root(dat[x]); } int size(int x) { return -dat[root(x)]; } }; int main(){ ios_base::sync_with_stdio(0); // finput("./input"); int n; cin >> n; UnionFind uf(n); rep(i,n-1){ int u,v; cin >> u >> v; uf.unionSet(u, v); } if(n <= 3 && uf.size(0) == n){ cout << "Bob" << endl; }else{ cout << "Alice" << endl; } return 0; }