#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  scanf("%d", &n);
  string s[1005];
  bool ok = 0;
  for (int i = 0; i < n; i++) cin >> s[i];
  for (int i = 0; i < n; i++) {
    for (int j = 1; j < s[i].length(); j++) {
      if (s[i][j] == 'O' && s[i][j - 1] == 'O') {
        ok = 1;
        s[i][j - 1] = s[i][j] = '+';
        break;
      }
    }
    if (ok) break;
  }
  if (ok) {
    puts("YES");
    for (int i = 0; i < n; i++) cout << s[i] << endl;
  } else
    puts("NO");
  return 0;
}
