Garden beds#1065

Garden beds

1 second
128 megabytes
Easy

A rectangular garden plot of width and length is divided into squares of side . Beds are dug in this plot. A bed is a collection of squares that satisfies the following conditions:

Count the number of beds in the garden plot.

Input

The first line contains two numbers and (1 \leq n, m \leq 200). The following lines each contain characters. The # symbol denotes the territory of a bed, and the dot denotes empty territory. There are no other characters in the input.

Output

Print the number of beds in the garden plot.

Examples

Example 1

Loading
Loading