Shower cabin#10140

Shower cabin

1 second
64 megabytes
Very easy

Stepan has purchased a shower cabin and plans to install it in his country house. The house is shaped like a rectangle with dimensions N \times M, divided into unit squares. The shower cabin takes up exactly two adjacent squares that share a side. Some squares in the house are already occupied by various items.

Your task is to help Stepan figure out how many different ways he can place the shower cabin in the house.

Input

The first line of input contains two integers and (1 \leq N, M \leq 1000), representing the dimensions of Stepan's country house. Each of the next lines contains characters, describing the layout of the house. A "#" symbol indicates a square that is already occupied, while a "." symbol indicates a free square that can be used for the shower cabin.

Output

Output a single integer, which is the number of ways to place the shower cabin in the country house.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading