#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>A>>B; vector> S,T; int x=0,y=0; set> SE; for(int t=0;t