#include using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int n; cin >> n; vector a(n); for(auto &nx : a){cin >> nx;} int sn=min(n,10); vector p; for(int i=1;i<=sn;i++){ p.push_back(i); } vector> mem(1<<19); vector r1,r2; do{ int cf=0; for(int i=0;i