import java.util.*; // yukicoder No.712 赤旗 public class Main { public static void main(String[] args) throws Exception { Scanner in = new Scanner(System.in); int N = in.nextInt(); int M = in.nextInt(); final int total = N * M; int count = 0; for(int i=0; i