import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.StringTokenizer;


public class Main {

	static class Task {
		
		int NN = 200005;
		int MOD = 1000000007;
		int INF = 2000000000;
		long INFINITY = 2000000000000000000L;
		
		char [][]a;
		int [][] U;
		int [][] D;
		int [][] L;
		int [][] R;
		
		public void solve(InputReader in, PrintWriter out) {
			int n = in.nextInt();
			int m = in.nextInt();
			a = new char[n][m];
			for(int i=0;i<n;++i) {
				String s = in.next();
				for(int j=0;j<m;++j)
					a[i][j] = s.charAt(j);
			}
			U = new int[n][m];
			D = new int[n][m];
			L = new int[n][m];
			R = new int[n][m];
			for(int i=0;i<n;++i) {
				int left = 0;
				for(int j=0;j<m;++j) {
					if(a[i][j] == '.') {
						L[i][j] = left;
						continue;
					}
					left = j + 1;
				}
				int right = m - 1;
				for(int j=m-1;j>=0;--j) {
					if(a[i][j] == '.') {
						R[i][j] = right;
						continue;
					}
					right = j - 1;
				}
			}
			for(int j=0;j<m;++j) {
				int up = 0;
				for(int i=0;i<n;++i) {
					if(a[i][j] == '.') {
						U[i][j] = up;
						continue;
					}
					up = i + 1;
				}
				int down = n - 1;
				for(int i=n-1;i>=0;--i) {
					if(a[i][j] == '.') {
						D[i][j] = down;
						continue;
					}
					down = i - 1;
				}
			}
			int ans = 0;
			for(int i=0;i<n;++i) {
				for(int j=0;j<m;++j) {
					if(a[i][j] == '.') {
						ans = Math.max(ans, D[i][j] - U[i][j] + 1 + R[i][j]-L[i][j]);
					}
				}
			}
			out.println(ans);
		}
		
	}
	
	static void prepareIO(boolean isFileIO) {
		//long t1 = System.currentTimeMillis();
		Task solver = new Task();
		// Standard IO
		if(!isFileIO) { 
			InputStream inputStream = System.in;
	        OutputStream outputStream = System.out;
	        InputReader in = new InputReader(inputStream);
	        PrintWriter out = new PrintWriter(outputStream);
	        solver.solve(in, out);
	        //out.println("time(s): " + (1.0*(System.currentTimeMillis()-t1))/1000.0);
	        out.close();
		}
        // File IO
		else {
			String IPfilePath = System.getProperty("user.home") + "/Downloads/ip.in";
	        String OPfilePath = System.getProperty("user.home") + "/Downloads/op.out";
	        InputReader fin = new InputReader(IPfilePath);
	        PrintWriter fout = null;
	        try {
				fout = new PrintWriter(new File(OPfilePath));
			} catch (FileNotFoundException e) {
				e.printStackTrace();
			}
	        solver.solve(fin, fout);
	        //fout.println("time(s): " + (1.0*(System.currentTimeMillis()-t1))/1000.0);
	        fout.close();
		}
	}
	
	public static void main(String[] args) {
        prepareIO(false);
	}
	
	static class InputReader {
        public BufferedReader reader;
        public StringTokenizer tokenizer;

        public InputReader(InputStream stream) {
            reader = new BufferedReader(new InputStreamReader(stream), 32768);
            tokenizer = null;
        }
        
        public InputReader(String filePath) {
        	File file = new File(filePath);
            try {
				reader = new BufferedReader(new FileReader(file));
			} catch (FileNotFoundException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
            tokenizer = null;
        }
        
        public String nextLine() {
        	String str = "";
        	try {
				str = reader.readLine();
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
        	return str;
        }
        
        public String next() {
            while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                try {
                    tokenizer = new StringTokenizer(reader.readLine());
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
            return tokenizer.nextToken();
        }

        public int nextInt() {
            return Integer.parseInt(next());
        }

        public long nextLong() {
            return Long.parseLong(next());
        }

        public double nextDouble() {
        	return Double.parseDouble(next());
        }
        
    }

}

Measured memory_bytes: 122288