CF690D1 The Wall (easy)

题目描述

### 题意翻译 给定一个长为 $C$ $(1≤C≤100)$ ,宽为 $R$ $(1≤R≤100)$ 的矩形。其中$‘.’$ 表示该区域为空,而 $‘B’$ 表示该区域为实。 现在求有多少个区域为实。

输入格式

第一行为两个整数 $C$ 和 $R$ 。 接下来就是 $C·R$ 的字符 $“B”$ 和 $“.”$

输出格式

一个整数,表示给定矩形中实的部分的

说明/提示

In the first sample case, the 2nd and 3rd columns define the first wall segment, and the 5th column defines the second.