import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.math.BigInteger; import java.util.Arrays; import java.util.NoSuchElementException; import java.util.Scanner; public class Main { public static void main(String[] args) throws FileNotFoundException { long t = System.currentTimeMillis(); new Main().run(); System.err.println(System.currentTimeMillis() - t); } void run() { Scanner sc = new Scanner(System.in); int N=sc.nextInt(); int[][] X=new int[N][N]; int[] y=new int[N]; for(int i=0;i>shift)%2==1) { cur+=A[shift]; } } dp[s]=cur; } for(int s=0;s<1L<>shift)%2==1) continue; if((s&y[shift])==y[shift])dp[s|1<