#include <bits/stdc++.h>
using namespace std;
string str[1005];
int n;
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> str[i];
  }
  bool get = false;
  for (int i = 0; i < n; i++) {
    if (str[i][0] == 'O' && str[i][1] == 'O') {
      get = true;
      str[i][0] = str[i][1] = '+';
      break;
    } else if (str[i][3] == 'O' && str[i][4] == 'O') {
      get = true;
      str[i][3] = str[i][4] = '+';
      break;
    }
  }
  if (get) {
    printf("YES\n");
    for (int i = 0; i < n; i++) {
      cout << str[i] << endl;
    }
  } else {
    printf("NO\n");
  }
  return 0;
};
