SP3861 MLASERP - Laser Phones

Description

[English](/problems/MLASERP/en/) [Vietnamese](/problems/MLASERP/vn/) 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. SAMPLE INPUT 7 8 ....... ......C ......* *****.* ....*.. ....*.. .C..*.. ....... ``` **OUTPUT** ``` * Line 1: A single integer: M SAMPLE OUTPUT 3 ``` **Any suggestted testcase will be welcomed.**

Output Format

N/A