h,w=map(int,input().split()) a=['']*h s=[] for y in range(h): a[y]=input() x=a[y].find('*') if x<0:continue s.append([x,y]) z=a[y][x+1:].find('*') if z<0:continue s.append([z+x+1,y]) x,y=0,0 if x==s[0][0]==s[1][0]: x+=1 elif y==s[0][1]==s[1][1]: y+=1 elif [x,y] in s: if x+1