#include <bits/stdc++.h>
#include<algorithm>
#define int long long
using namespace std;
typedef pair<int,int> P;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define INF 1000000000000

template<int MOD> struct Fp {
    long long val;
    constexpr Fp(long long v = 0) noexcept : val(v % MOD) {
        if (val < 0) val += MOD;
    }
    constexpr int getmod() { return MOD; }
    constexpr Fp operator - () const noexcept {
        return val ? MOD - val : 0;
    }
    constexpr Fp operator + (const Fp& r) const noexcept { return Fp(*this) += r; }
    constexpr Fp operator - (const Fp& r) const noexcept { return Fp(*this) -= r; }
    constexpr Fp operator * (const Fp& r) const noexcept { return Fp(*this) *= r; }
    constexpr Fp operator / (const Fp& r) const noexcept { return Fp(*this) /= r; }
    constexpr Fp& operator += (const Fp& r) noexcept {
        val += r.val;
        if (val >= MOD) val -= MOD;
        return *this;
    }
    constexpr Fp& operator -= (const Fp& r) noexcept {
        val -= r.val;
        if (val < 0) val += MOD;
        return *this;
    }
    constexpr Fp& operator *= (const Fp& r) noexcept {
        val = val * r.val % MOD;
        return *this;
    }
    constexpr Fp& operator /= (const Fp& r) noexcept {
        long long a = r.val, b = MOD, u = 1, v = 0;
        while (b) {
            long long t = a / b;
            a -= t * b; swap(a, b);
            u -= t * v; swap(u, v);
        }
        val = val * u % MOD;
        if (val < 0) val += MOD;
        return *this;
    }
    constexpr bool operator == (const Fp& r) const noexcept {
        return this->val == r.val;
    }
    constexpr bool operator != (const Fp& r) const noexcept {
        return this->val != r.val;
    }
    friend constexpr ostream& operator << (ostream &os, const Fp<MOD>& x) noexcept {
        return os << x.val;
    }
    friend constexpr Fp<MOD> modpow(const Fp<MOD> &a, long long n) noexcept {
        if (n == 0) return 1;
        auto t = modpow(a, n / 2);
        t = t * t;
        if (n & 1) t = t * a;
        return t;
    }
};


const int MOD = 1000000007;
using mint = Fp<MOD>;


int modpow(int a,int x){
  if(a<0)a+=MOD;
  int ans=1;
  while(x>0){
    if(x&1) ans=ans*a%MOD;
      a=a*a%MOD;
      x>>=1;
  }
  return ans;
}
int gyaku(int n){
    return modpow(n,MOD-2);
}

//素因数分解でそれぞれの素数がいくつ出てきたかを保存するmap
auto pfactor(int n){
  map<int,int> res;
  int t=sqrt(n);
  for(int i=2;i<=t;i++){
    for(;n%i==0;n/=i)res[i]++;
  }
  if(n>1)res[n]++;
  return res;
}
vector<int>kai(0);
void kaizyou(vector<int>&kai){
    rep(i,kai.size()){
        kai[i+1]=kai[i]*(i+1)%MOD;
      }
  }
int comb(int a,int b){
  return (kai[a]*gyaku(kai[a-b]))%MOD*gyaku(kai[b])%MOD;
}
////////////////////////////////////////////////////////////////////////
signed main() {
  int h,w;
  cin>>h>>w;
  vector<vector<char>>s(h,(vector<char>(w)));
  rep(i,h)rep(j,w)cin>>s[i][j];
  vector<vector<int>>sl(h,vector<int>(w));
  vector<vector<int>>sr(h,vector<int>(w));
  vector<vector<int>>su(h,vector<int>(w));
  vector<vector<int>>sd(h,vector<int>(w));

  rep(i,h){
    rep(j,w){
      if(j==0){
        if(s[i][j]=='#')sl[i][j]=0;
        else sl[i][j]=1;
        continue;
      }
      if(s[i][j]=='#')sl[i][j]=0;
      else sl[i][j]=sl[i][j-1]+1;
    }
  }

  rep(i,h){
    rep(j,w){
      if(j==0){
        if(s[i][w-j-1]=='#')sr[i][w-j-1]=0;
        else sr[i][w-j-1]=1;
        continue;
      }
      if(s[i][w-j-1]=='#')sr[i][w-j-1]=0;
      else sr[i][w-j-1]=sr[i][w-j]+1;
    }
  }

  rep(j,w){
    rep(i,h){
      if(i==0){
        if(s[i][j]=='#')su[i][j]=0;
        else su[i][j]=1;
        continue;
      }
      if(s[i][j]=='#')su[i][j]=0;
      else su[i][j]=su[i-1][j]+1;
    }
  }

  rep(j,w){
    rep(i,h){
      if(i==0){
        if(s[h-i-1][j]=='#')sd[h-i-1][j]=0;
        else sd[h-i-1][j]=1;
        continue;
      }
      if(s[h-i-1][j]=='#')sd[h-i-1][j]=0;
      else sd[h-i-1][j]=sd[h-i][j]+1;
    }
  }

  int m=0;
  rep(i,h)rep(j,w){
    int t=su[i][j]+sd[i][j]+sr[i][j]+sl[i][j]-3;
    m=max(m,t);
  }
  cout<<m<<endl;

  }


Measured memory_bytes: 132520