public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int row = scanner.nextInt(); int col = scanner.nextInt(); if (row < 1||row>100000 || col < 1 || col>100000) { System.out.println(0); ...