Cell removal#1063

Cell removal

1 second
128 megabytes
Easy

From a rectangular sheet of paper with rows and columns, some cells are removed. Into how many pieces will the remaining part of the sheet break? Two cells belong to the same piece if they share a side.

Input

The first line contains the numbers and (1 \leq m, n \leq 100). Each of the next lines contains symbols. If a cell is not removed, it is denoted by the symbol #; if it is removed, it is denoted by a dot ..

Output

Print the number of pieces into which the sheet will break.

Examples

Example 1

Loading
Loading