#include using namespace std; #define int long long signed main(){ int N,M; cin>>N>>M; vector> G(N); for(int i=0;i>a>>b; a--; b--; G[a].push_back(b); G[b].push_back(a); } vector dist(N,-1); for(int i=0;i q; q.push(i); while(!q.empty()){ int pos = q.front(); q.pop(); for(int x:G[pos]){ if(dist[x] == -1 || dist[x]%2 != dist[pos]%2){ if(dist[x] == -1) q.push(x); dist[x] = 1-dist[pos]%2; } else{ cout<<"No"<