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