#include int deg[100000]; int main(){ int N; std::cin>>N; for(int i=0;i>a>>b; --a; --b; ++deg[a]; ++deg[b]; } int ans=0; for(int i=0;i