import java.io.IOException; import java.io.InputStream; import java.math.BigInteger; import java.util.Arrays; import java.util.NoSuchElementException; import java.util.Random; public class Main { public static void main(String[] args) { new Main().run(); } void run() { FastScanner sc = new FastScanner(); int N=sc.nextInt(); int M=sc.nextInt(); boolean[][] S=new boolean[N][M]; for (int i=0;i>j)%2==0) continue; if (!S[i][j]) continue out; } alive[i]=true; } for (int next=0;next>next)%2==1) continue; int ok=0; int ng=0; for (int i=0;i=ng) { dp[s|1< Integer.MAX_VALUE) throw new NumberFormatException(); return (int) nl; } public double nextDouble() { return Double.parseDouble(next()); } }