/*
        _            _                  _            _       _     _         _   _          _          _             _        
       / /\         / /\               / /\         / /\    / /\  /\ \      /\_\/\_\ _     /\ \       /\ \     _    /\ \      
      / /  \       / /  \             / /  \       / / /   / / /  \ \ \    / / / / //\_\   \ \ \     /  \ \   /\_\ /  \ \     
     / / /\ \__   / / /\ \           / / /\ \__   / /_/   / / /   /\ \_\  /\ \/ \ \/ / /   /\ \_\   / /\ \ \_/ / // /\ \_\    
    / / /\ \___\ / / /\ \ \         / / /\ \___\ / /\ \__/ / /   / /\/_/ /  \____\__/ /   / /\/_/  / / /\ \___/ // / /\/_/    
    \ \ \ \/___// / /  \ \ \        \ \ \ \/___// /\ \___\/ /   / / /   / /\/________/   / / /    / / /  \/____// / / ______  
     \ \ \     / / /___/ /\ \        \ \ \     / / /\/___/ /   / / /   / / /\/_// / /   / / /    / / /    / / // / / /\_____\ 
 _    \ \ \   / / /_____/ /\ \   _    \ \ \   / / /   / / /   / / /   / / /    / / /   / / /    / / /    / / // / /  \/____ / 
/_/\__/ / /  / /_________/\ \ \ /_/\__/ / /  / / /   / / /___/ / /__ / / /    / / /___/ / /__  / / /    / / // / /_____/ / /  
\ \/___/ /  / / /_       __\ \_\\ \/___/ /  / / /   / / //\__\/_/___\\/_/    / / //\__\/_/___\/ / /    / / // / /______\/ /   
 \_____\/   \_\___\     /____/_/ \_____\/   \/_/    \/_/ \/_________/        \/_/ \/_________/\/_/     \/_/ \/___________/    
                                                                                                                              
*/
#include<bits/stdc++.h>
using namespace std;
#define ALL(obj) (obj).begin(), (obj).end()
#define rsort(obj) sort(ALL(obj)); reverse(ALL(obj))
#define REP(i, n) for(int i = 0;i < (n);++i)

#define endl '\n'
#define pb emplace_back
#define mkp make_pair
#define p_q priority_queue
#define INF 1000000000
#define LLINF 1145141919810LL
#define PI 3.1415926
#define coutdb cout << fixed << setprecision(10)

const int dx[]={1,0,-1,0}, dy[]={0,-1,0,1};
const int dx_8[]={1,1,0,-1,-1,-1,0,1}, dy_8[]={0,-1,-1,-1,0,1,1,1};
const long long MOD = 1e9+7;

// typedef long long ll;
#define int long long

template <typename T> inline T GCD(T a,T b){T c;while(b!=0){c=a%b;a=b;b=c;}return a;}
template <typename T> inline T LCM(T a,T b){T c=GCD(a,b);a/=c;return a*b;}
template <typename T> inline T nCr(T a,T b){T i,r=1;for(i=1;i<=b;i++){r*=(a+1-i);r/=i;}return r;}
template <typename T> inline T nHr(T a,T b){return nCr(a+b-1,b);}

int L[2000][2000], R[2000][2000], U[2000][2000], D[2000][2000];

signed main(void){
  cin.tie(0);
  ios::sync_with_stdio(false);

  int N, M; string s[2000]; cin >> N >> M;
  REP(i, N) cin >> s[i];

  REP(i, N){
    REP(j, M){
      if(s[i][j] == '.' and j == 0) ;
      else if(s[i][j] == '.') L[i][j] = L[i][j-1]+1;
      else L[i][j] = -1;
    }
    for(int j = M-1; j >= 0; j--){
      if(s[i][j] == '.' and j == M-1) ;
      else if(s[i][j] == '.') R[i][j] = R[i][j+1]+1;
      else R[i][j] = -1;
    }
  }
  REP(j, M){
    REP(i, N){
      if(s[i][j] == '.' and i == 0) ;
      else if(s[i][j] == '.') U[i][j] = U[i-1][j]+1;
      else U[i][j] = -1;
    }
    for(int i = N-1; i >= 0; i--){
      if(s[i][j] == '.' and i == N-1) ;
      else if(s[i][j] == '.') D[i][j] = D[i+1][j]+1;
      else D[i][j] = -1;
    }
  }

  int ans = 0;
  REP(i, N) REP(j, M){
    if(s[i][j] == '.'){
      ans = max(ans, U[i][j]+L[i][j]+D[i][j]+R[i][j]);
    }
  }
  cout << ans+1 << endl;
}

Measured memory_bytes: 129536