ll a[14],n,b;ll f(ll u,ll v){ll i=ffs(u);b>?=i>n?v:0;rep(j,i--,n)u&1<