Gulnoza has a garden of size \(N \times M\). If \(a[i][j]\) = "T", there is a tree in cell \((i, j)\); otherwise the cell is empty.
Gulnoza's brother Yahyo is very interested in space and wants to send a message to aliens in the shape of a rhombus. For this, he can place stones in several cells of the garden. The stones must form a rhombus when viewed from above. However, Yahyo does not want to harm the trees (Protect the trees!).
The bigger the message, the higher the probability the aliens will receive it. Create a rhombus by placing as many stones as possible!
The first line contains \(N\) and \(M\) – the dimensions of Gulnoza's garden.
The next \(N\) lines each contain \(M\) characters, where "T" denotes a tree and "." denotes an empty cell.
Print a single line – the maximum number of stones that can be used.
For example, let \(N = 7\) and \(M = 6\). There are \(7\) trees in the field, and \(13\) stones can be placed in a rhombus shape without harming them.
7 6 .T...T ..T... T....T ...... T..... ...... ...T..
13