#include <bits/stdc++.h>
int main() {
  unsigned n, fl = 0;
  scanf("%u", &n);
  char mtx[n][6];
  for (unsigned i = 0; i < n; i++) {
    scanf("%s", mtx[i]);
    if ((!fl) && (mtx[i][0] == mtx[i][1]) && (mtx[i][0] == 'O')) {
      fl = 1;
      mtx[i][0] = mtx[i][1] = '+';
    }
    if ((!fl) && (mtx[i][3] == mtx[i][4]) && (mtx[i][3] == 'O')) {
      fl = 1;
      mtx[i][3] = mtx[i][4] = '+';
    }
  }
  if (fl) {
    printf("YES\n");
    for (int i = 0; i < n; i++) {
      printf("%s\n", mtx[i]);
    }
  } else
    printf("NO\n");
  return 0;
}
