#include using namespace std; int main() { int n,ans = 1,count = 0; cin >> n; char a[n][n]; for(int i = 0; i < n; i++){ for(int j = 0; j < n; j++){ cin >> a[i][j]; } } for(int i = 0; i < n; i++){ if(a[0][i] == 'x') ans++; if(a[0][i] == 'o' || a[0][i] == '-') count++; } ans = ans - count; if(ans < 1) ans = 1; cout << ans << endl; return 0; }