P2937 [USACO09JAN] Laserphones S

Description

The cows have a new laser-based system so they can have casual conversations while out in the pasture which is modeled as a W x H grid of points (1

Input Format

\* Line 1: Two space separated integers: W and H \* Lines 2..H+1: The entire pasture.

Output Format

\* Line 1: A single integer: M