#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string s[n];
  for (int i = 0; i < n; i++) {
    cin >> s[i];
  }
  int f = 0;
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < s[i].length(); j++) {
      if ((s[i][j] == 'O') && (s[i][j + 1] == 'O')) {
        if ((j == 0) || (j == 3)) {
          s[i][j] = '+';
          s[i][j + 1] = '+';
          f = 1;
          break;
        }
      }
    }
    if (f == 1) break;
  }
  if (f == 0) {
    cout << "NO\n";
    return 0;
  }
  cout << "YES\n";
  for (int i = 0; i < n; i++) {
    cout << s[i] << endl;
  }
  return 0;
}
