#include using namespace std; using Int = long long; template inline void chmin(T1 &a,T2 b){if(a>b) a=b;} template inline void chmax(T1 &a,T2 b){if(a rs,ps; UnionFind(){} UnionFind(Int n):num(n),rs(n,1),ps(n,0){iota(ps.begin(),ps.end(),0);} Int find(Int x){ return (x==ps[x]?x:ps[x]=find(ps[x])); } bool same(Int x,Int y){ return find(x)==find(y); } void unite(Int x,Int y){ x=find(x);y=find(y); if(x==y) return; if(rs[x] void drop(const T &x){cout<>n; UnionFind uf(n); vector deg(n); for(Int i=1;i>a>>b; uf.unite(a,b); deg[a]++; deg[b]++; } if(uf.count()==1) drop("Bob"); if(uf.count()==3) drop("Alice"); if(uf.count()==2&&*max_element(deg.begin(),deg.end())==2) for(Int i=0;i