#include <bits/stdc++.h>
using namespace std;
string s[1010];
int main() {
  int n;
  cin >> n;
  bool f = 1;
  for (int i = 0; i < n; ++i) {
    cin >> s[i];
    if (f && s[i].substr(0, 2) == "OO") {
      f = 0;
      s[i][0] = '+';
      s[i][1] = '+';
    }
    if (f && s[i].substr(3, 2) == "OO") {
      f = 0;
      s[i][3] = '+';
      s[i][4] = '+';
    }
  }
  if (f) {
    cout << "NO";
  } else {
    cout << "YES" << endl;
    for (int i = 0; i < n; ++i) cout << s[i] << endl;
  }
  return 0;
}
