#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  string st, s;
  cin >> n;
  while (n--) cin >> s, st += s + "\n";
  int pos = st.find("OO");
  if (pos >= 0) {
    st.replace(pos, 2, "++");
    cout << "YES\n" << st;
  } else
    cout << "NO";
}
