#include using namespace std; using ll=long long; using pii=pair; #define all(a) a.begin(),a.end() #define pb push_back #define sz(a) ((int)a.size()) const int maxn=200005; int n,m,col[maxn]; vector adj[maxn]; bool vis[maxn],flag; void dfs(int u){ vis[u]=1; for(auto v: adj[u]){ if(vis[v]){ if(col[u]^col[v]^1){ flag=1; } continue; } col[v]=col[u]^1; dfs(v); } } signed main(){ ios_base::sync_with_stdio(0),cin.tie(0); cin >> n >> m; for(int i=0; i> u >> v; u--,v--; adj[u].pb(v),adj[v].pb(u); } for(int i=0; i