#include using namespace std; using ll =long long; #define all(v) v.begin(),v.end() #define rep(i,a,b) for(int i=a;i=b;i--) vector> vec; vector note; ll ans=0; void solve(ll k,ll from) { ll count=0; for(auto x:vec[k]) { if(x==from) continue; solve(x,k); if(!note[x]) count++; } if(count>0) { ans+=count; note[k]=true; } return ; } int main() { ll N;cin>>N; vec=vector> (N,vector (0)); note=vector (N,false); for(ll i=0;i>U>>V; U--;V--; vec[U].push_back(V); vec[V].push_back(U); } solve(0,0); if(!note[0]) ans++; cout<