#include using namespace std; #include using namespace atcoder; using ll = long long; int n,m; vector x,y; void solve(){ vector v(n); for(int i = 0;i> n >> m; x = y = vector(m); for(int i = 0;i> x[i] >> y[i]; for(auto &i:x)i--; for(auto &i:y)i--; solve(); }