SP3360 IMGREC2 - Digital Image Recognition

Description

N/A

Input Format

There are multiple test cases in the input file. Each test case starts with two integers, R and C (1

Output Format

For each test case, please print a single integer, the sum of recognizable numbers. See the sample output for format details.