#include using namespace std; typedef long long ll; #define MOD 1000000007 #define INF 1e9 const int MAX_N=100010; vector G[MAX_N]; int main(){ int N; cin>>N; for(int i=0;i>a>>b; a--,b--; G[a].push_back(b); G[b].push_back(a); } int ans=0; for(int i=0;i