#include using namespace std; int main(){ ios_base::sync_with_stdio(false); cin.tie(nullptr); int N,M; cin >> N >> M; vector NG(N,-1); for(int i=0; i> p >> q; p--; q--; NG.at(p) = i,NG.at(q) = i; } int win = 0; vector already(M); stack St; St.push(0); for(int i=0; i