#include using namespace std; int main(){ ios_base::sync_with_stdio(false); cin.tie(nullptr); int N,M; cin >> N >> M; vector NG(N); while(M--){ int p,q; cin >> p >> q; p--; q--; NG.at(p) = true,NG.at(q) = true; } int rot = 0; for(int i=0; i