Rating changes for last rounds are temporarily rolled back. They will be returned soon. ×

J. Join the art class
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output

Appa and Winnie are dogs with very different passions. While Winnie loves drawing, Appa is fascinated by mathematics.

Seeing her love for drawing, Winnie decides to join the Public Art Classes, where the first lesson is to create geometric figures using only '.', '/', and '\', as shown below:

Winnie's drawing.

Since Appa does not have the opportunity to join any course, he decides to take Winnie's drawings and calculate the area of the shapes. However, he knows nothing about mathematics, except that each '.' represents a 1×1 unit. So he asks for your help in calculating the area of the shapes Winnie draws.

Input

The first line contains two integers, N and M ($$$2 \leq N, M \leq 100$$$), indicating the width and height of the matrix. Next, M lines of size N will be read, containing the characters '.', '/', and '\'. There will always be a figure for which the area must be calculated.

Output

A single line containing the area of the figure, printed with two decimal places.

Example
Input
14 12
....../\......
...../..\.....
..../....\....
.../......\...
../........\..
./..........\.
.\........../.
..\......../..
...\....../...
....\..../....
.....\../.....
......\/......
Output
72.00