#include using namespace std; int N,A[14]; long dp[1<<14]; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); cin>>N; for(int i=0;i>A[i]; for(int i=0;i<1<>j&1)){ for(int k=0;k>k&1)){ int ni=i|1<