Problem: There is a grid with H horizontal rows and W vertical columns, and there are obstacles on some of the squares.

Snuke is going to choose one of the squares not occupied by an obstacle and place a lamp on it. The lamp placed on the square will emit straight beams of light in four cardinal directions: up, down, left, and right. In each direction, the beam will continue traveling until it hits a square occupied by an obstacle or it hits the border of the grid. It will light all the squares on the way, including the square on which the lamp is placed, but not the square occupied by an obstacle.

Snuke wants to maximize the number of squares lighted by the lamp.

You are given H strings S_i (1 \leq i \leq H), each of length W. If the j-th character (1 \leq j \leq W) of S_i is `#`, there is an obstacle on the square at the i-th row from the top and the j-th column from the left; if that character is `.`, there is no obstacle on that square.

Find the maximum possible number of squares lighted by the lamp.

Constraints

* 1 \leq H \leq 2,000
* 1 \leq W \leq 2,000
* S_i is a string of length W consisting of `#` and `.`.
* `.` occurs at least once in one of the strings S_i (1 \leq i \leq H).

Input

Input is given from Standard Input in the following format:


H W
S_1
:
S_H


Output

Print the maximum possible number of squares lighted by the lamp.

Examples

Input

4 6
#..#..
.....#
....#.
#.#...


Output

8


Input

4 6
..#..
.....#
....#.
.#...


Output

8


Input

8 8
..#...#.
....#...
......
..###..#
...#..#.
....#.
...#...
.#..#


Output

13

Solution (in CPP):

Solution:
#include<iostream>
#include<algorithm>
using namespace std;
#define rep(i,ra,re) for((i)=ra;(i)<(re);(i)++)
#define puts(n) cout << n << endl;
#define MAX 2000
bool a[MAX][MAX];
int l[MAX][MAX],r[MAX][MAX],u[MAX][MAX],d[MAX][MAX];
int ui,di,lj,rj,k,i,j,maxs=-1;
int main(void){
	int h,w;
	cin >> h >> w;
	rep(i,0,h){
		rep(j,0,w){
			char s;cin >> s;
			a[i][j]=(s=='#'?true:false);
		}
	}
		
	rep(i,0,h){
		int lx=-1,rx=w;
		rep(k,0,w){
			lj=k;rj=w-k-1;
				if(a[i][lj])
					lx=lj;
				else
					l[i][lj]=lj-lx-1;
			
				if(a[i][rj])
					rx=rj;
				else
					r[i][rj]=rx-rj-1;
			}
		}
		
	rep(j,0,w){
		int ux=-1,dx=h;
			rep(k,0,h){
				ui=k;di=h-k-1;
				if(a[ui][j])
					ux=ui;
				else
					u[ui][j]=ui-ux-1;
				
				if(a[di][j])
					dx=di;
				else
					d[di][j]=dx-di-1;
			}
		}
		rep(i,0,h)
			rep(j,0,w)
				if(!a[i][j])
					maxs=max(maxs,r[i][j]+l[i][j]+u[i][j]+d[i][j]);
		
		puts(maxs+1);
		return 0;
}