Carpet

No attempts yetTime limit4sMemory limit256 MB

Problem

Bajtazar is looking at a carpet in a shop. Some parts of the carpet have ugly manufacturing flaws. He wants to buy as much carpet as he can, so he decided that a piece with one flaw is acceptable. He will stand a large flower pot on that square, so it will not be a problem.

The carpet on sale is a rectangle of height ww and width ss, divided into w×sw \times s squares of size 1×11 \times 1. For every square you know whether it is flawed. Bajtazar wants to buy the largest rectangular piece made of these unit squares in which at most one square is flawed. What is the area of that piece?

Input

The first line contains two integers ww and ss (1w,s20001 \le w, s \le 2000), the height and the width of the carpet. Each of the next ww lines describes one row of the carpet, from top to bottom. Each of those lines is a string of ss characters, where . is a square without a flaw and # is a flawed square.

Output

Print the largest area of a rectangular piece of carpet that consists of unit squares and contains at most one flawed square.