Once, during a programming lesson, while the teacher was discussing working with matrices, Petya had the idea of using a two-dimensional matrix to draw patterns.
He took a sheet of graph paper and cut out a square of size N \times N. Then, Petya cut out some cells from this square, thus creating a square-shaped stencil with cut-out cells.
Next, Petya does the following: he takes another sheet of graph paper of size N \times N, places the stencil on top of it, and colors the cells of the bottom sheet through the stencil. Then, he rotates the stencil 90^{\circ} clockwise and colors the bottom sheet again. He repeats this process two more times. In total, Petya colors the cells of the bottom sheet four times— with the stencil rotated by 0^{\circ}, 90^{\circ}, 180^{\circ}, and 270^{\circ} from its original position.
The stencil used by Petya is given. Your task is to determine how many cells of the bottom sheet will be colored as a result of the described procedure.
The input file describes the stencil.
The first line contains a single natural number (1 \leq N \leq 1000) — the size of the stencil.
The following lines contain only the characters 'X' (uppercase Latin letter X) and '.' (dot). Each line is characters long and corresponds to one row of the stencil. The character 'X' indicates a cut-out cell.
Output the number of cells that will be colored as a result of the procedure described above.
Example 1