#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; vector A; for(int i=0;i>x; if(x){ A.push_back(x); } } N=si(A); if(N>=16){ cout<<(1<<16)-1<=0;i--){ if(dp[N][i]){ cout<