#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  ios_base::sync_with_stdio(false);
  long long n, i, f = 0, j;
  cin >> n;
  string s[n];
  for (long long i = 0; i < n; i++) cin >> s[i];
  for (i = 0; i < n; i++) {
    for (j = 0; j < 5; j += 3) {
      if (s[i][j] == 'O' && s[i][j + 1] == 'O') {
        s[i][j] = '+';
        s[i][j + 1] = '+';
        f++;
        break;
      }
    }
    if (f) break;
  }
  if (f) {
    cout << "YES\n";
    for (long long i = 0; i < n; i++) cout << s[i] << "\n";
  } else
    cout << "NO\n";
}
