#include #include #include using namespace std; int main() { int a,b,x,y; cin>>b; cin>>a; vectorpar[b]; int boja[b]; for(int i=0;i>x>>y; par[x].push_back(y); par[y].push_back(x); } for(int i=0;iQ; Q.push(0); boja[0]=0; while(!Q.empty()) { int teme=Q.front(); Q.pop(); if(t==true) { cout<<"NO"; return 0; } for(int i=0;i