#include using namespace std; #define rep(i,n) for(int i=0;i=0;i--) #define rng(i,c,n) for(int i=c;i #define _4ab8goq ios::sync_with_stdio(0),cin.tie(0); typedef long long ll; typedef vector vi; typedef pair pii; void print(){cout<<'\n';} template void print(const h&v,const t&...u){cout<>n; vec(string) a(n); rep(i,n){ cin>>a[i]; } int ans=0; rep(i,n){ rep(j,n){ if(a[i][j]=='.'){ a[i][j]='A'; // int pok=0; { int fnd=0; rep(k,n){ if(a[k][j]!='A'){ fnd=1; } } if(!fnd) ans+=1; } // if(i==2 and j==0) print(pok); { int fnd=0; rep(k,n){ if(a[i][k]!='A'){ fnd=1; } } if(!fnd) ans+=1; } { int cnt=0; rng(ad,-n,n+1){ if(i+ad=0 and j+ad>=0 and j+ad=0 and i-ad=0 and j+ad