#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string o[n];
  bool check = false;
  for (int i = 0; i < n; i++) {
    cin >> o[i];
    for (int j = 0; j < o[i].size(); j++) {
      if (o[i][j] == 'O' && o[i][j + 1] == 'O') {
        check = true;
      }
    }
  }
  if (check == false) {
    cout << "NO" << endl;
  } else {
    cout << "YES" << endl;
    bool check_found = false;
    for (int i = 0; i < n; i++) {
      for (int j = 0; j < o[i].size(); j++) {
        if (o[i][j] == 'O' && o[i][j + 1] == 'O' && check_found == false) {
          cout << "++";
          j++;
          check_found = true;
        } else {
          cout << o[i][j];
        }
      }
      cout << endl;
    }
  }
  return 0;
}
