#include using namespace std; using Int = long long; template inline void chmin(T1 &a,T2 b){if(a>b) a=b;} template inline void chmax(T1 &a,T2 b){if(a>n; vector x(n),y(n); for(Int i=0;i>x[i]>>y[i]; Int s=1<>i)&1) continue; for(Int j=0;j>j)&1) continue; chmin(dp[j][b|(1<