#include <bits/stdc++.h>
using namespace std;
inline int read() {
  int x = 0, f = 1;
  char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9') {
    x = 10 * x + ch - '0';
    ch = getchar();
  }
  return x * f;
}
int a[100 + 5][100 + 5], b[100 + 5][100 + 5], c[100 + 5][100 + 5], n;
inline bool check(int x, int y) {
  for (int i = 1; i <= (n); i++)
    for (int j = 1; j <= (n); j++)
      if (a[i][j] == 1) {
        int xx = i + x, yy = j + y;
        if (xx < 1 || yy < 1 || xx > n || yy > n) continue;
        if (a[xx][yy] == 3) return 0;
      }
  for (int i = 1; i <= (n); i++)
    for (int j = 1; j <= (n); j++)
      if (a[i][j] == 1) {
        int xx = i + x, yy = j + y;
        if (xx < 1 || yy < 1 || xx > n || yy > n) continue;
        if (a[xx][yy] == 2) c[xx][yy]++;
      }
  return 1;
}
int main() {
  n = read();
  for (int i = 1; i <= (n); i++)
    for (int j = 1; j <= (n); j++) {
      char ch = getchar();
      while (ch != 'o' && ch != 'x' && ch != '.') ch = getchar();
      if (ch == 'o')
        a[i][j] = 1;
      else if (ch == 'x')
        a[i][j] = 2;
      else
        a[i][j] = 3;
    }
  for (int i = (-n + 1); i <= (n - 1); i++)
    for (int j = (-n + 1); j <= (n - 1); j++)
      if (check(i, j)) b[n + i][n + j] = 1;
  for (int i = 1; i <= (n); i++)
    for (int j = 1; j <= (n); j++)
      if (a[i][j] == 2 && c[i][j] == 0) {
        printf("NO\n");
        return 0;
      }
  printf("YES\n");
  for (int i = 1; i <= (2 * n - 1); i++) {
    for (int j = 1; j <= (2 * n - 1); j++) {
      if (i == n && j == n)
        printf("o");
      else if (b[i][j])
        printf("x");
      else
        printf(".");
    }
    printf("\n");
  }
  return 0;
}
