#include #include #include #include #include using namespace std; int ans; int n,m; int cnt[10]; struct node{ int x,y; void in(){ scanf("%d%d",&x,&y); if(x>y)swap(x,y); cnt[x]++; cnt[y]++; } friend bool operator < (node a,node b){ if(a.x==b.x)return a.y