#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n;
  cin >> n;
  vector<string> B(n);
  for (auto &a : B) cin >> a;
  vector<vector<int>> R(2 * n, vector<int>(2 * n, 1));
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; j++) {
      if (B[i][j] != 'o') continue;
      for (int k = 0; k < n; k++) {
        for (int l = 0; l < n; l++) {
          if (B[k][l] == '.') R[i - k + n - 1][j - l + n - 1] = 0;
        }
      }
    }
  }
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; j++) {
      if (B[i][j] != 'o') continue;
      for (int k = 0; k < n; k++) {
        for (int l = 0; l < n; l++) {
          if (B[k][l] == 'x' && R[i - k + n - 1][j - l + n - 1] == 1)
            B[k][l] = '.';
        }
      }
    }
  }
  bool ok = true;
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; j++) {
      if (B[i][j] == 'x') ok = false;
    }
  }
  if (ok) {
    cout << "YES" << endl;
    for (int i = 2 * n - 2; i >= 0; i--) {
      for (int j = 2 * n - 2; j >= 0; j--) {
        if (i == n - 1 && j == n - 1) {
          cout << 'o';
          continue;
        }
        if (R[i][j] != 0)
          cout << 'x';
        else
          cout << '.';
      }
      cout << endl;
    }
  } else {
    cout << "NO" << endl;
  }
}
