#include using namespace std; typedef long long ll; templatebool chmax(T &a, const T &b) { if (abool chmin(T &a, const T &b) { if (b>N>>M; vector> E(M); for(int i=0;i>a>>b;a--;b--; E[i]=mp(a,b); } ll tar=0; int ans=INF; for(int i=0;i>c; if(c) tar|=(1LL< MA; int K=M/2; for(int bi=0;bi<(1<