#include <bits/stdc++.h>
using namespace std;
int n, c;
string s[1009];
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> s[i];
  }
  for (int i = 0; i < n; i++) {
    if ((s[i] == "XX|XX") || (s[i] == "OX|XX") || (s[i] == "XO|XX") ||
        (s[i] == "XX|OX") || (s[i] == "XX|XO") || (s[i] == "OX|OX") ||
        (s[i] == "OX|XO") || (s[i] == "XO|XO") || (s[i] == "XO|OX"))
      continue;
    else if ((s[i] == "OO|XX")) {
      s[i] = "++|XX";
      c++;
      break;
    } else if ((s[i] == "OO|XO")) {
      s[i] = "++|XO";
      c++;
      break;
    } else if ((s[i] == "OO|OX")) {
      s[i] = "++|OX";
      c++;
      break;
    } else if ((s[i] == "XX|OO")) {
      s[i] = "XX|++";
      c++;
      break;
    } else if ((s[i] == "XO|OO")) {
      s[i] = "XO|++";
      c++;
      break;
    } else if ((s[i] == "OX|OO")) {
      s[i] = "OX|++";
      c++;
      break;
    } else if ((s[i] == "OO|OO")) {
      s[i] = "++|OO";
      c++;
      break;
    }
  }
  if (c > 0) {
    cout << "YES" << endl;
    for (int i = 0; i < n; i++) {
      cout << s[i] << endl;
    }
  } else
    cout << "NO" << endl;
  return 0;
}
