#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<string> seats;
  bool done = false;
  int N;
  cin >> N;
  for (int i = 0; i < N; i++) {
    string s;
    cin >> s;
    if (!done) {
      if (s[0] == 'O' && s[1] == 'O') {
        s[0] = s[1] = '+';
        done = true;
      } else if (s[3] == 'O' && s[4] == 'O') {
        s[3] = s[4] = '+';
        done = true;
      }
    }
    seats.push_back(s);
  }
  if (done) {
    cout << "YES\n";
    for (int i = 0; i < N; i++) {
      cout << seats[i];
      cout << "\n";
    }
  } else
    cout << "NO\n";
  return 0;
}
