#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  while (cin >> n) {
    bool succ = false;
    std::vector<string> v;
    for (int i = 0; i < n; i++) {
      string s;
      cin >> s;
      if (!succ) {
        if (s.substr(0, 2) == "OO") {
          s = "++" + s.substr(2, 5);
          succ = true;
        } else if (s.substr(3, 5) == "OO") {
          s = s.substr(0, 3) + "++";
          succ = true;
        }
      }
      v.push_back(s);
    }
    if (succ) {
      printf("YES\n");
      for (int i = 0; i < v.size(); i++) {
        printf("%s\n", v[i].c_str());
      }
    } else {
      printf("NO\n");
    }
  }
  return 0;
}
