#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  string num[1002];
  while (cin >> n) {
    int flag = 0;
    for (int i = 0; i < n; i++) cin >> num[i];
    for (int i = 0; i < n; i++) {
      int pos = num[i].find("OO", 0);
      if (pos != -1) {
        flag = 1;
        num[i].replace(pos, 2, "++");
        break;
      }
    }
    if (flag) {
      cout << "YES" << endl;
      for (int i = 0; i < n; i++) cout << num[i] << endl;
    } else
      cout << "NO" << endl;
  }
  return 0;
}
