#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string *str = new string[n + 1];
  string answ = "No";
  for (int k = 0; k < n + 1; k++) {
    getline(cin, str[k]);
    int pl = str[k].find("OO");
    if ((pl < str[k].size()) && (answ == "No")) {
      str[k][pl] = '+';
      str[k][pl + 1] = '+';
      answ = "Yes";
    }
  }
  cout << answ;
  if (answ == "Yes") {
    for (int i = 0; i < n + 1; i++) {
      cout << str[i] << endl;
    }
  }
  delete[] str;
}
