#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int t, x, y, n, k, m, ans, a[100002];
  scanf("%lld", &n);
  t = 0;
  vector<string> v;
  v.clear();
  for (x = 0; x < n; x++) {
    string s;
    cin >> s;
    if (s[0] == 'O' && s[1] == 'O' && t == 0) {
      s[0] = '+';
      s[1] = '+';
      t = 1;
    } else if (s[3] == 'O' && s[4] == 'O' && t == 0) {
      s[3] = '+';
      s[4] = '+';
      t = 1;
    }
    v.push_back(s);
  }
  if (t) {
    cout << "YES\n";
    for (x = 0; x < n; x++) cout << v[x] << endl;
  } else
    cout << "NO\n";
  return 0;
}
